-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Streamed upload not working in Safari on OS/X #700
Comments
Confirmed. The issue is that Safari 5.1 doesn't properly handle File or Blob objects anymore when given as argument to the XHR send method. When searching for additional information on this issue I found a thread referring to the same problem with the Plupload plugin: moxiecode/plupload#320 Seems like Safari 5.1 also doesn't support the FileReader interface anymore, so non-multipart file uploads are simply not possible anymore with this browser version. Until there is a better way to detect if the browser supports non-multipart XHR file uploads, you can set the multipart option with the exclusion of Safari 5.1 like this (thanks mperrando for the FileReader hint):
|
I am using this condition $('#fileupload').fileupload({
multipart: !window.FileReader
}); On Safari it sets multipart to true, while on other browsers (Chrome, Firefox) sets it to false. Could this solution have problems? Actually I check also the |
That's actually a better way to check. |
When using the option
multipart: false
the content of the request is 15 bytes long and contains only the string
I hope to find time to look further in to it.
Here follow the details of the user agent.
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50
The text was updated successfully, but these errors were encountered: