All work
- FileGetMimeType doesn't detect cffile uploaded xlsx files with the wrong file extensionLDEV-2375
- <cffile> S3 write no longer workingLDEV-1149Resolved issue: LDEV-1149Michael Offner
- ACF Compatibility for this.blockedExtForFileUpload in Application.cfcLDEV-2174Resolved issue: LDEV-2174Igal Sapir
- Threading issue: the thread scope cannot be modified from outside the owner threadLDEV-1389Resolved issue: LDEV-1389Michael Offner
- allow override of whitespace control on a per-request basis (CFSetting option?)LDEV-670
- Incompatibility - cffile action=upload attemptedserverfile key returns a different result than ACFLDEV-4201Resolved issue: LDEV-4201Pothys - MitrahSoft
- Large File Uploads Crash ServerLDEV-548Resolved issue: LDEV-548Pothys - MitrahSoft
- cffile throws java.lang.ClassCastException when accessing s3 fileLDEV-1129Resolved issue: LDEV-1129Michael Offner
- add nameconflict="forceunique" for file uploads to use a filename with a uuidLDEV-3122Resolved issue: LDEV-3122Pothys - MitrahSoft
- Lucee is leaving abandoned files in tomcat temp directoryLDEV-4047Resolved issue: LDEV-4047Michael Offner
- File upload with colon in the file name to a Windows install creates crazy.LDEV-2285Michael Offner
- cffile action read without file attribute throws a NPE.LDEV-3364Resolved issue: LDEV-3364Pothys - MitrahSoft
- blockedExtensions arguments doesn't works in fileUpload/fileUploadAllLDEV-4238Resolved issue: LDEV-4238Pothys - MitrahSoft
- File uploads doesn't support allowedExtensions or strict="false"LDEV-3018Resolved issue: LDEV-3018Pothys - MitrahSoft
- Default ACL for file operations on S3 must be "private"LDEV-1396Resolved issue: LDEV-1396Michael Offner
- «Malformed input or input contains unmappable characters» on FileUpload with german «Umlaute» in filenameLDEV-3471Michael Offner
- Allow uploading all files of an <input type="file" multiple>LDEV-1948
- Lucee fails to recreate a class after the cfm file is modifiedLDEV-1752Pothys - MitrahSoft
- cfpdf - action - thumbnailLDEV-967Resolved issue: LDEV-967Pothys - MitrahSoft
- regression: image extension 1.0.0.30-SNAPSHOT imageread/imageinfo locks filesLDEV-2544Resolved issue: LDEV-2544Michael Offner
- Double spaces in filename combined to one in cfdirectory name attributeLDEV-678Resolved issue: LDEV-678Pothys - MitrahSoft
- Add Action = Prepend to CFFILELDEV-4138
- CFLDAP: writing a user's thumbnailPhoto via action="modify" not possible because of binary encoding issueLDEV-1460Resolved issue: LDEV-1460Pothys - MitrahSoft
- fileUpload for S3 brokenLDEV-2336Pothys - MitrahSoft
- RAM drive disappearsLDEV-1109Michael Offner
- cfzip does not see a zip file that is on a ram drive or s3LDEV-2890Michael Offner
- cffile: inconsistent behavior of the attribute nameConflict with "makeunique" valueLDEV-2872Resolved issue: LDEV-2872Pothys - MitrahSoft
- getFileInfo is missing created dateLDEV-3270Resolved issue: LDEV-3270Pothys - MitrahSoft
- Form scope missing after interrupted file uploadLDEV-3943Michael Offner
- cfpdf addwatermark errorLDEV-1519Resolved issue: LDEV-1519Pothys - MitrahSoft
- FileExists behavior inconsistent with ACFLDEV-3773Michael Offner
- cffile makeunique filename isn't synchronisedLDEV-2878Michael Offner
- directoryList see directories as filesLDEV-3614Pothys - MitrahSoft
- Consider changing tag 'scopes' to be "local" when called from functionLDEV-1130Michael Offner
- ImageWrite does not write to Amazon S3 bucketLDEV-2442
- S3 needs signature v4LDEV-246Resolved issue: LDEV-246
- Problem using Lusee and the Amazon s3 ExtensionLDEV-2553Resolved issue: LDEV-2553
- S3 Content-Type meta data not set correctly for .css filesLDEV-1774Michael Offner
- better error feedback for cffile permission problemsLDEV-3220Resolved issue: LDEV-3220Mircea Botez
- <cfhttp path="network_drive"LDEV-3443Resolved issue: LDEV-3443
- cffile can't upload more than 1 file at a timeLDEV-1028Resolved issue: LDEV-1028Michael Offner
- CFFILE upload crashes Lucee 5.1.0.xLDEV-940Resolved issue: LDEV-940Michael Offner
- Lucee handles files uploads incorrectly when Content-Type is missingLDEV-2180Resolved issue: LDEV-2180Michael Offner
- cffile upload not workLDEV-939Resolved issue: LDEV-939Michael Offner
- Restarting tomcat on latest Lucee with the s3 extension enabled causes web contexts to fail.LDEV-2529
- cffile write nameconflict skip - writes an empty fileLDEV-2159Resolved issue: LDEV-2159Michael Offner
- cffile - mimetype of MS Office files incorrect in 5.2.2.71+LDEV-1549Resolved issue: LDEV-1549Michael Offner
- Admin blows up when an extension has an invalid icon image and makes ALL extensions unusableLDEV-2433Resolved issue: LDEV-2433Michael Offner
- Incorrect mime type detection of ms excelLDEV-390Resolved issue: LDEV-390Michael Offner
- cffile failed to write fileLDEV-2143Resolved issue: LDEV-2143Pothys - MitrahSoft
FileGetMimeType doesn't detect cffile uploaded xlsx files with the wrong file extension
Description
Environment
Attachments
relates to
Details
Details
Assignee
Reporter
Priority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Activity
Gavin Baumanis 24 November 2024 at 12:17
I found this ticket as a result of getting the wrong mime time for docx file.
I get application/x-tika-ooxml when passing a xlsx
AND docx
, too - when using strict='true'
var mimeType = fileGetMimeType(file="#prc.Document.getFileNameOnDisk()#", strict="true");
writeLog(file="mimeType",text="mimeType : #mimeType#");
gives the following log entry
"INFO","XNIO-1 task-1","11/24/2024","23:09:40","MyApp","mimeType : application/x-tika-ooxml"
Using “properties” on Explorer on Windows (11) - gives the following mime-type
officedocument.wordprocessingml.document
Zac Spitzer 25 July 2019 at 11:54
i just tried creating another simple test case and it worked as you described, tho that tika mime type is also wrong
however, if i upload the same sample file using <cffile action="upload"
and then use FileGetMimeType I get “application/octet-stream”
Julian Halliwell 24 July 2019 at 13:46
@Zac Spitzer I'm not seeing that result with 5.3.4.4 or any other version I've tried.
FileGetMimeType( ExpandPath( "test.xlsxxx" ) );
is returning "application/x-tika-ooxml" for me. Are you sure your file is definitely an OOXML spreadsheet? You can check it using https://github.com/cfsimplicity/lucee-spreadsheet:
spreadsheet = New Spreadsheet();
workbook = spreadsheet.read( ExpandPath( "test.xlsxxx" ) );
dump( spreadsheet.isXmlFormat( workbook ) );
take a xlsx file, rename it to xlsxxx
FileGetMimeType(path) returns "application/octet-stream"
strict is default, so it should be checking the file's header? https://docs.lucee.org/reference/functions/filegetmimetype.html