Hi Alex,
Greetings from Syncfusion support.
We would like to inform you that, by using the ID attribute in the Uploader component, we can get the file on the server side. We can give any name to the component Id but you can get the file on the server side by using the same Id name. Kindly refer the below code.
|
<SfUploader ID="UploadFiles1" AutoUpload="false">
<UploaderAsyncSettings SaveUrl="api/SampleData/Save" RemoveUrl="api/SampleData/Remove"></UploaderAsyncSettings>
</SfUploader>
<SfUploader ID="UploadFiles2" AutoUpload="false">
<UploaderAsyncSettings SaveUrl="api/SampleData/SaveBlog" RemoveUrl="api/SampleData/RemoveBlog"></UploaderAsyncSettings>
</SfUploader> |
|
public async void Save(IList<IFormFile> UploadFiles1) {
...
}
public async void SaveBlog(IList<IFormFile> UploadFiles2) {
...
} |
Sample:
Kindly check with the above sample meets your requirement. If not or if we misunderstood the query, please provide the below details.
- Whether using the same handler for all uploader Components.
- Provide pictorial representation or video demonstration to replicate the issue.
- Try to replicate the issue in the provided sample.
The above requested details will help us to provide you the solution at earliest.
Regards,
Ponmani M