blueimp/jQuery-File-Upload — Issue #998: Accept file types doesn't restrict type
Author: sam57
Created: 2012-02-09 09:12:04+00:00
State: open

Hi,

I have followed your example but when I upload a file I want to restrict different type, but it doesn't work.

Here my js:

$('#fileupload').fileupload({
dataType: 'json',
acceptFileTypes: /(.|\/)(gif|jpe?g|png)$/i,
url: 'jqueryUploadFile/php/index.php,
done: function (e, data) {

}
});

Have an idea?
Thanks
Sam