Unable to upload some file extension types Unable to upload some file extension types
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Unable to upload some file extension types

Started by dmrow, March 11, 2020, 09:35:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dmrow

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.





phill104

It is a mistake to think you can solve any major problems just with potatoes.

dmrow

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.

ron4mac

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?

ron4mac

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.