I am using the slingshot package to upload files to my app.
Uploading files is restricted to admin users.
I want it to be possible for them, to upload any type of file.
Looking at the the validatorscheckFileType() function it accepts a RegExp as well as a string (or array of strings), so…
allowedFileTypes: /.*/i
… will allow any files type through (just quickly tested on a Slingshot S3 setup I have here and it allows anything I threw at it through). If you want to limit to a subset of specific filetypes which is a better/safer idea, they’re called MIME types, and you can find lists all over, here is one that claims to be quite comprehensive.