IC SunsetThe developerWorks Connections platform will be sunset on December 31, 2019. On January 1, 2020, this forum will no longer be available. More details available on our FAQ.
Topic
  • 1 reply
  • Latest Post - ‏2014-09-20T11:59:44Z by jitupkp
vijayan.s
vijayan.s
1 Post

Pinned topic ajaxFileUpload not working in Chrome and Firefox

‏2011-06-28T09:47:05Z |
Hi all,
I am using $.ajaxFileUpload to upload the files in my MVC application.I worked in IE8,IE9 but not working in google chrome.

This is my code pls check it and let me know anything i missed out

$.ajaxFileUpload
(
{
url: 'ManageEmployeeDocuments',
secureuri: false,
fileElementId: 'employeeDocumentsId',
dataType: 'text/html',
success: function (data, status) {
// we are manually adding the form tag again because it gets deleted when we post once using the ajaxuploadjquery
$("#EmployeeDocuments").html('<form method="post" id="employeeDocumentsId" enctype="multipart/form-data" action="/">' + data);
},
error: function (data, status, e) {
alert(e);
}
}
)