Advanced search  

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]

Pages: [1]   Go Down

Author Topic: filetypes table in mysql ?  (Read 3229 times)

0 Members and 1 Guest are viewing this topic.

Sofistikated

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • sofistikated.net
filetypes table in mysql ?
« 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: filetypes table in mysql ?
« Reply #1 on: November 09, 2005, 07:19:03 am »

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

Nibbler

  • Guest
Re: filetypes table in mysql ?
« Reply #2 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
Logged

Sofistikated

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • sofistikated.net
Re: filetypes table in mysql ?
« Reply #3 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.  ???
« Last Edit: November 09, 2005, 11:58:02 pm by Sofistikated »
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 16 queries.