ajax file upload

Ajax file upload

With the latest browser from Safari 5/Firefox 4 we can use FormData class:

So now we have a object of FormData , which can be sent along with the XMLHttpRequest.

  We can  set the contentType option to false,which  force jQuery not to add a Content-Type header for you, otherwise, the boundary string will be missing from it. Also,[…]