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?