coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: emptyspaces on September 27, 2005, 04:27:37 PM

Title: Can only upload if I change file extension.
Post by: emptyspaces on September 27, 2005, 04:27:37 PM
I'm sure this is here somewhere, but I can't find it.

I have uploaded 2 divx files.  When I batch add, I get the PB sign.  I have checked folder permissions.
When I change the extensions to .mov or .avi, they are pulled in to the gallery fine.

How can I configure cpm to recognize or allow these files to be merged into galleries with their divx extension intact?  I am sure there is a config setting somewhere, but it is not on the config page (as far as I know).  I have no problem editting code, but rather than fish around trying to reinvent the wheel, I thought I would ask first.

Thanks you.

RUNNING: 1.3.3
Title: Re: Can only upload if I change file extension.
Post by: emptyspaces on September 27, 2005, 05:36:46 PM
Found my answer for adding filetypes in a previous post.  The following registers file extensions with cpm.  This worked for me.
--------------------------------------------------------------------------------
xou'll need a tool like phpMyAdmin to manually edit the mySQL table cpg_filetypes. You will have to add another line like this INSERT INTO cpgXXX_filetypes VALUES ('mpeg', 'video/mpeg', 'movie');

GauGau