I\'m attempting to send one file and one text variable to my server with the FormData object. Looking at the Network tab in Chrome\'s developer tools, I can see that the fil
Remove the ajaxHandler.setRequestHeader("Content-type","multipart/form-data"); from the code.
The proper multipart/form-data header should contain boundary string. Browser automatically set that header, if you add file in FormData.