blueimp/jQuery-File-Upload — Issue #706: acceptFileTypes and audio files
Author: noog
Created: 2011-10-16 11:37:33+00:00
State: open

hello
i can't allow mp3 and wav extension
i downloaded the demo example
and modified upload.php
'accept_file_types' => '/(\.|\/)(mpeg|x-mpeg|mp3|x-mp3|mpeg3|x-mpeg3|mpg|x-mpg|x-mpegaudio|wav|zip|pdf|jpg)$/i',
and application.js
// Initialize the jQuery File Upload widget:
$('#fileupload').fileupload({
acceptFileTypes: /(.|\/)(mpeg|x-mpeg|mp3|x-mp3|mpeg3|x-mpeg3|mpg|x-mpg|x-mpegaudio|wav|zip|pdf|jpg)$/i,
autoUpload: true,
maxNumberOfFiles: 5,
maxFileSize: 500000000
});

it's ok for pdf, jpg, pdf but not mp3 and wav

what is the problem ?

thks