|
|
 |
 |
 |
mainresponder.getFileMimeType
Files of type 'TEXT' are given the wrong mimetype by mainresponder when served as files.
| on getFileMimeType (f) //get the MIME type of a file (not a folder) |
| |
«Get the MIME type of a file. |
| |
«local (adrCache = @system.temp.mainResponder.mimeTypeCache) |
| |
«if not defined (adrCache^) //PBS 12/07/01: don't do caching |
| |
local (mimeType = "text/html") |
| |
local (objectType = file.type (f)) |
| |
if system.environment.isWindows |
| |
if system.environment.isMac |
| |
«adrCache^.[f] = mimeType //cache the mime type //PBS 12/07/01: don't do caching |
Relative to Frontier version 9.7b10
|