accept only allowedFileTypes
gsuess opened this issue · 1 comments
gsuess commented
Nice Package!
It would be nice if you would restrict the selectable file-types by what the directive allows:
fileTypes = Slingshot.getRestriction(directiveName)?.allowedFileTypes
fileTypes = [fileTypes] if _.isString fileTypes
return fileTypes.join "," if _.isArray fileTypes
ryanswrt commented
Good idea! Will have a go at it when I have some free time.