Add additional data on upload

21 Dec 20221 minute to read

The uploader control allows you to add additional data on file upload, which is used to get in the server-side. By using uploading event and its customFormData argument, you can achieve this behavior. Refer to the following example.

    var asyncSettings = new Syncfusion.EJ2.Inputs.UploaderAsyncSettings { SaveUrl = "", RemoveUrl = "" };

<div class="control_wrapper">
    <div id='preview'></div>
    <ejs-uploader id="fileupload" uploading="onFileUpload" asyncSettings="@asyncSettings"> </ejs-uploader>

    function onFileUpload(args) {
        args.customFormData = [{ 'name': 'Syncfusion INC' }];

.control_wrapper {
	max-width: 505px;
	margin: auto;


You can also explore ASP.NET Core File Upload feature tour page for its groundbreaking features. You can also explore our ASP.NET Core File Upload example to understand how to browse the files which you want to upload to the server.