Upload xlsx files

See all posts See thread Reply

Re: Upload xlsx files new!
by Ray, 1 year, 5 months ago
Sorry for bothering but I didn't find any solution for my problem with some uploads. I started a new test-envirenment on another server but upload fails again with some files.
I suppose that it has to do with "Mime validated as encrypted files". You wrote "You need to set up your OS so that MIME detection returns something more meaningful for your files."
What can I do to ensure this?Reply
Re: Upload xlsx files new!
by colin, 1 year, 5 months ago
Basically, the MIME detection on your system returns the wrong MIME type, or more precisely not the best MIME type for your file.

I tried with two XLSX files on my system:
$ file -b --mime foo.xlsx
application/octet-stream; charset=binary

$ file -b --mime bar.xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=binary

Here, even though they are two XLSX files, the MIME returned is not the same. So it seems that the file itself may confuse the MIME type detection.

I am not too sure that we can do something about that...Reply
Re: Upload xlsx files new!
by Ray, 1 year, 5 months ago
Thanks for reply.
What is irritating me so much is, that upload of xlsx files and xls files generally work, so I suppose it depends of the files themselves, that cannot be uploaded.
I will now try to compare files from the same customer that work with those who are not working, though I don't have any clue where to look at...Reply
Re: Upload xlsx files new!
by colin, 1 year, 5 months ago
Yes, it seems that it depends on the file. For instance, if the XLS file is encrypted, then the MIME is application/encrypted, which is then difficult to single out to allow only XLSX files rather than all encrypted files...Reply
Re: Upload xlsx files new!
by Ray, 1 year, 5 months ago
Yepp, after testing a lot I am sure it depends on the files only. Tere must be something in the settings of my customers, that let the class detect them as encrypted though they are not encrypted.
A simple "save as" on my system let the calls detect the as spreadsheet or other file that makes them uploadable.
So my customer has to search....Reply