weixiyen / jquery-filedrop

jQuery plugin - drag and drop desktop files and POST to a URL to handle files.
958 stars 285 forks source link

Should use the 'FormData' rather than the old readAsBInaryString() if possible ! #96

Open xipx opened 12 years ago

xipx commented 12 years ago

FormData is way faster than the readAsBInaryString() especially when uploading large files.Actually no need to use the FileReader at all.

According to my test, uploading 6 files(each was about 4MB ) took me about almost 10s to convert the images to BInaryString ! And if use FormData the sending process is happend immediately.

So without using the FormData will cause a huge huge performance loss.Thus check if it is possible to use FormData,if possible should use the FormData preferentially.

gam6itko commented 11 years ago

is this what you wanted ?

149