I'm using blueimp File Upload plugin to upload files. There's an example regex to restrict the upload to images only:
var acceptFileTypes = /^image\/(gif|jpe?g|png)$/i;
How can I change this to upload image files, and documents like PDF, TXT, DOC?
var acceptFileTypes =
/^image\/(gif|jpe?g|png)$|^application\/(pdf|msword)$|^text\/plain$/i;
This seems to assume that the correct mime type is checked against acceptFileTypes