FS.Utility file type

#1

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.

#2

If there’s no MIME type, you’ll probably have to resort to using the file extension (assuming InDesign files have a known extension).