BoldDeskWe are launching BoldDesk on Product Hunt soon.
Learn more & follow us.
Hi, while using your file upload component for Blazor, how can I send additional data to the controller? For example, how to send a name value pair such as "name":"amjad" to the controller along with the file?
You can use
CustomFormData which adds the additional data in key and value pair format that will be
submitted to the upload action. Please refer to the below forum for more
Reference : https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.UploadingEventArgs.html#Syncfusion_Blazor_Inputs_UploadingEventArgs_CustomFormData
Forum : https://www.syncfusion.com/forums/145921/how-to-pass-additional-parameters-at-file-upload?reply=NfE3iq
Adding input fields to the upload form.
Adding additional form data programmatically.
Setting formData on upload starts.
Setting formData on upload start for each individual file upload.
How to retrieve and set form data asynchronously.
Handling additional form data on server side.
We request you provide an exact requirement detail
along with the use case scenario. So that we are able to validate the
query further and provide you with a prompt solution.
Udhaya Kumar D