jquery-filedrop icon indicating copy to clipboard operation
jquery-filedrop copied to clipboard

Can't get async sending to work

Open basarevych opened this issue 12 years ago • 1 comments

I see that there is xhr.open() call with the last parameter being true.

Strange, but when I try to upload it seems to be synchronous. Browser asks if I want to terminate a hanging script (200M file).

What am I doing wrong?

basarevych avatar Feb 18 '13 16:02 basarevych

The problem is that Chrome doesn't have XMLHttpRequest.prototype.sendBinary. Firefox does and it works properly on that browser.

You can use this if you want that functionality: https://github.com/ilijamt/jquery-filedrop

Also all the newer browser support FormData so I've reworked it a little to use FormData if it's available if it's not it will fallback to the method used in this plugin

ilijamt avatar Feb 22 '13 03:02 ilijamt