Skip to main content
deleted 34 characters in body
Source Link

You can pass additional parameters along with file name on making asynchronous upload using XMLHttpRequest (without flash and iframe dependency). Append the additional parameter value with FormData and send the upload request.


var formData = new FormData(); <br>
formData.append('parameter1', 'value1'); <br>
formData.append('parameter2', 'value2'); <br>
formData.append('file', $('input[type=file]')[0].files[0]);<br>;

$.ajax({<br>
    url: 'post back url',<br>
    data: formData,<br>
// other attributes of AJAX<br>AJAX
});

Also, Syncfusion JavaScript UI file upload provides solution for this scenario simply using event argument. you can find documentation here and further details about this control here enter link description here

You can pass additional parameters along with file name on making asynchronous upload using XMLHttpRequest (without flash and iframe dependency). Append the additional parameter value with FormData and send the upload request.


var formData = new FormData(); <br>
formData.append('parameter1', 'value1'); <br>
formData.append('parameter2', 'value2'); <br>
formData.append('file', $('input[type=file]')[0].files[0]);<br>

$.ajax({<br>
    url: 'post back url',<br>
    data: formData,<br>
// other attributes of AJAX<br>
});

Also, Syncfusion JavaScript UI file upload provides solution for this scenario simply using event argument. you can find documentation here and further details about this control here enter link description here

You can pass additional parameters along with file name on making asynchronous upload using XMLHttpRequest (without flash and iframe dependency). Append the additional parameter value with FormData and send the upload request.


var formData = new FormData();
formData.append('parameter1', 'value1');
formData.append('parameter2', 'value2'); 
formData.append('file', $('input[type=file]')[0].files[0]);

$.ajax({
    url: 'post back url',
    data: formData,
// other attributes of AJAX
});

Also, Syncfusion JavaScript UI file upload provides solution for this scenario simply using event argument. you can find documentation here and further details about this control here enter link description here

Source Link

You can pass additional parameters along with file name on making asynchronous upload using XMLHttpRequest (without flash and iframe dependency). Append the additional parameter value with FormData and send the upload request.


var formData = new FormData(); <br>
formData.append('parameter1', 'value1'); <br>
formData.append('parameter2', 'value2'); <br>
formData.append('file', $('input[type=file]')[0].files[0]);<br>

$.ajax({<br>
    url: 'post back url',<br>
    data: formData,<br>
// other attributes of AJAX<br>
});

Also, Syncfusion JavaScript UI file upload provides solution for this scenario simply using event argument. you can find documentation here and further details about this control here enter link description here