jQuery-File-Upload icon indicating copy to clipboard operation
jQuery-File-Upload copied to clipboard

mp3's

Open delasare opened this issue 14 years ago • 2 comments

I'm looking for some guidance on how to properly update the mime types to accept mp3's.

I've been playing with the demo using php. Images seemed to upload fine, but when I switch the acceptable files types with the following, it does not upload the the item.

"acceptFileTypes: /(.|/)(mpeg|x-mpeg|mp3|x-mp3|mpeg3|x-mpeg3|mpg|x-mpg|x-mpegaudio)$/i"

The response loooks like this:

[{"name":"music.mp3","size":0,"type":"","error":1}]

It looks like the type is not being set and thus causes "error:1".

Anyone else have this type of issue or have any idea what I am missing?

delasare avatar Mar 03 '12 20:03 delasare

Here's a list of PHP error messages with explanations: http://php.net/manual/en/features.file-upload.errors.php

Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini.

blueimp avatar Mar 04 '12 03:03 blueimp

Thanks for the response! I actually figured it out. Great Plugin.

delasare avatar Mar 05 '12 02:03 delasare