File upload using ajax is not working in Safari Mac but it working in other browsers like chrome, FF, IE
When we remove processdata and formdata variable from ajax options everything is working fine except file upload.
Please help me urgently, this is blocker issue for me.
Thanks in advance
Sample code:
params = new FormData();
params.append(“message.subject”, subject);
params.append(“message.author”, '“test123”);
var x = document.getElementById(“upload”);
for (var i = 0; i < x.files.length; i++) {
params.append(“message.upload”, x.files[i]);
I’m not sure which browsers support multipart/form-data ajax submissions but I know that it’s limited support. That’s why when I’ve needed that in the past I have used that plugin I linked to which does the old fashioned submissions using a <form /> to do the do posting.