filestore.js - file type/subtype support