forum.coppermine-gallery.net
Support => cpg1.6.x Support => cpg1.6 upload => Topic started by: dmrow on March 11, 2020, 09:35:50 pm
-
I'm running a new installation of 1.6.08 Coppermine.
I edited the config file to allow the following file types (ie I added eps and also docx and xlsx)
Images : jpeg/jpg/png/gif/eps
Movies (default unchanged) : asf/asx/mpg/mpeg/wmv/swf/avi/mov/m4v
Audio (default unchanged, but should now add .flac as it is a standard type these days) : mp3/midi/mid/wma/wav/ogg
Doc types : doc/txt/rtf/pdf/xls/pps/ppt/zip/gz/mdb/docx/xlsx
I saved the changes and verified the changes had been saved.
I then tried uploading a .eps file and got the following error message
Only files with the following extensions are accepted: asf, asx, avi, doc, docx, gif, gz, jpeg, jpg, m4v, mdb, mid, midi, mov, mp3, mpeg, mpg, ogg, pdf, png, pps, ppt, rtf, swf, txt, wav, wma, wmv, xls, xlsx, zip #0 /home/u588457363/domains/triptokz.com/public_html/pix/uniload.php @116
Line 116 of the uniload.php file says errorOut($lang_db_input_php..... and so on. It doesn't show a list of files, although refers to $CONFIG['allowed_file_extensions']
The list of file types in the error message does now show the added docx and xlsx file types, but not the eps entry. How do I get this added?
Many tks
David.
-
Please use this plugin - https://forum.coppermine-gallery.net/index.php/topic,79569.0.html
-
Thank you. I have downloaded, installed, and activated the plugin. I added an entry for eps as an image/eps type MIME entry, described it as an image, with no player assigned.
I now try simple uploading a single eps file and get an error "<file name> unassigned".
Any suggestions for the next step?
Tks
David.
-
The word unassigned does not exist in a CPG 1.6.08 install ... so the source of that error message is a mystery. I will test uploading .eps files on my test site to see if I can come up with anything. Do your files actually have the .eps extension?
-
It seems a .eps file is associated with a number of mime types (application/postscript, application/eps, application/x-eps, image/eps, image/x-eps) and, depending on PHP version, can be interpreted differently depending on the file content format. And a number of web browsers will not display it as an image, anyway.
So it would seem your best option is to add eps in the config to accepted documents instead of images and in the file types (editor) as a document.