coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Sofistikated on November 09, 2005, 06:39:22 AM

Title: filetypes table in mysql ?
Post by: Sofistikated on November 09, 2005, 06:39:22 AM
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.
Title: Re: filetypes table in mysql ?
Post by: Joachim Müller on November 09, 2005, 07:19:03 AM
turn off notices in config to get rid of the message you quoted
Title: Re: filetypes table in mysql ?
Post by: Nibbler on November 09, 2005, 02:55:56 PM
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
Title: Re: filetypes table in mysql ?
Post by: Sofistikated on November 09, 2005, 09:16:24 PM
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.  ???