Has the library used to handle Office documents and detect their MIME type changed?
I have a form which uploads an .xlsx file, and only accepts those:
<cffile action="upload"
fileField="contactsFile"
destination="#expandPath( "../upload/contacts.xlsx" )#"
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
nameConflict="overwrite" />
This used to work fine, but now rejects the file (Lucee 5.2.5). On investigation, the uploaded file, created in MS Office, has the MIME type application/x-tika-ooxml
. Adding this as an accepted format fixes the issue, but this is not a change I was aware of…
–
Seb