Fixed
Details
Assignee
Michael OffnerMichael OffnerReporter
JPJPPriority
NewFix versions
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
Sprint
NoneAffects versions
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
JP
JPPriority
Fix versions
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
Sprint
None
Affects versions
Created 18 November 2018 at 16:54
Updated 18 March 2019 at 16:40
Resolved 3 December 2018 at 10:10
When calling FileGetMimeType("#createuuid()#.m4a"), I get a java.lang.NullPointerException. However, if I make the same call using an mp3 file (or jpg, gif, mp4, etc), it returns the correct mime type. In either of these cases, the file does not actually exist.
When I call FileGetMimeType("C:/mytestfile.m4a") and the file exists, and is really a text file, the function returns "text/plain" so the function appears to be reading the file - perhaps this happens for certain file extensions?
Does the source file need to exist for this call to work correctly?