coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: Irish Rover on October 06, 2005, 04:53:05 PM

Title: Image extensions
Post by: Irish Rover on October 06, 2005, 04:53:05 PM
My server has ImageMagick working and nothing is running in safe mode.
I'm still unable to upload anything but the 3 extensions used by GD 2,
Any ideas or suggestions where to find the problem?
Title: Re: Image extensions
Post by: Nibbler on October 06, 2005, 04:56:32 PM
http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php

What are you trying to do exactly ?
Title: Re: Image extensions
Post by: Irish Rover on October 06, 2005, 06:04:47 PM
Upload an image file other then the 3 image extensions used by GD2 and any of the 90 which ImageMagick is capable of using. But so far all I've been able to use are the 3.
Thanks for moving this thread, sorry for that


Title: Re: Image extensions
Post by: Nibbler on October 06, 2005, 06:27:29 PM
You need to manually add additional filetypes into the cpg_filetypes table in your database. Coppermine only accepts filetypes it knows about for security reasons. You'll need to run a query like the following for each filetype using phpmyadmin or similar:

INSERT INTO CPG_filetypes VALUES ('xxx', 'yyy', 'image');

Replacing CPG_ with the prefix you chose during installation, xxx with the filename extension, and yyy with the mime type of the file.
Title: Re: Image extensions
Post by: Irish Rover on October 06, 2005, 07:49:31 PM
Thank You!