filetypes table in mysql ? filetypes table in mysql ?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

filetypes table in mysql ?

Started by Sofistikated, November 09, 2005, 06:39:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sofistikated

So, I was trying to add support for mp4 files in phpmyadmin, but apparently I didn't know what I was doing and screwed it up. Now it says:

"Notice: Undefined index: in /gallery/include/media.functions.inc.php on line 33."

Is there a way to restore the filetypes part of the database to its original state? And after I accomplish that (if possible) how do I properly insert a row for mp4 extensions? Thanks.

Joachim Müller

turn off notices in config to get rid of the message you quoted

Nibbler

The row should be:

`extension` -> the extension in lower case ie. mp4
`mime` -> the mime type of an mp4 file
`content` -> one of these 4 types: image, audio, document, video

Sofistikated

#3
How can I turn of notices? The only thing I see in config about notices is to display notices in debug mode.

Also, that IS what I put in to add another extension. I went into phpmyadmin, clicked on filetypes, then browse up top, then under all of the listed extensions, I clicked "add new row" or whatever, then put "mp4," "video/mp4," and "video," and clicked go. Nothing was inserted though. When I tried to do it again, it said that there was a duplicate, so I'm confused.  ???