$('#uploadmultifile').click(function (e) { debugger; e.preventDefault(); var fileUpload = document.getElementById("files"); var filepath = fileUpload.value; var form = new FormData($('#fileupload')[0]); for (var i = 0; i < fileUpload.files.length; i++) { form.append('file', fileUpload.files[i]); } form.append('filepath', filepath); $.ajax({ url: '/UplaodFile/uploadPgrs', type: 'POST', success: function (data) { alert("Data Uploaded: " + data); }, data:form, cache: false, contentType: false, processData: false }); return false; });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)