I was wondering how the file type is set on a file object when using a loop like
FS.Utility.eachFile(event, function(file) {
if (file.type == "") {
}
});
I’m trying to select an InDesign file but there’s no MIME type associated with it.
I was wondering how the file type is set on a file object when using a loop like
FS.Utility.eachFile(event, function(file) {
if (file.type == "") {
}
});
I’m trying to select an InDesign file but there’s no MIME type associated with it.
If there’s no MIME type, you’ll probably have to resort to using the file extension (assuming InDesign files have a known extension).