Hi John,
Greetings from Syncfusion support.
We have provided support for “send additional data with upload files” and included in the below private NuGet package. The support will be include in our upcoming patch release which is scheduled on 28th August 2019. Until then, kindly use this below private NuGet for this support and utilize FileSelected event to send additional data (args.CustomFormData) as a key-value pair.
Thanks for your patience and we will deliver the support to patch release as promised.
Note: Clear NuGet cache and refer the local Nuget
- Before install the NuGet, you must remove the bin and object folder in your application
- Tools -->options --> NuGet Package Manager --> General --> Clear All NuGet Caches
- Download the above NuGet packages
- Tools -->options --> NuGet Package Manager --> Package Sources --> Click Add button --> browse the local package location --> click Update --> ok
- Right-click the project and select Manage NuGet Packages
- Select your private NuGet name and install the packages
Please find the sample and code snippet for your reference.
@using Syncfusion.EJ2.Blazor
@using Syncfusion.EJ2.Blazor.Inputs
<h4>Upload Custom Header</h4>
<EjsUploader>
<UploaderEvents FileSelected="OnFileSelect"></UploaderEvents>
</EjsUploader>
@code{
public void OnFileSelect(SelectedEventArgs args)
{
args.CustomFormData = new List<object> { new { Name = "Syncfusion" } };
}
} |
Output:
Regards,
Gopi G.