Hi Tsvetan,
Greetings from Syncfusion support.
We have checked your reported issue and unfortunately the issue is not able to reproduced in our end. We suspect you have add the preload file name with extension for Name property in File object property. We would inform you that we have returned name with extension in OnRemove event FileData argument.
Please find the code snippet to preload the file into uploader component.
@using Syncfusion.EJ2.Blazor.Inputs;
<EjsUploader DropArea=".control-fluid" MaxFileSize="10000000">
<UploaderFiles>
<UploaderUploadedFiles Name="Nature" Size=500000 Type=".png"></UploaderUploadedFiles>
</UploaderFiles>
</EjsUploader>
@code{
public void OnFileRemove(RemovingEventArgs removingEventArgs)
{
removingEventArgs.Cancel = true;
var name = removingEventArgs.FilesData.First().Name;
this.InvokeAsync(this.StateHasChanged);
}
} |
Note: We have provided tag helper support for File and UploaderAsyncSettings property.
OutPut:
We have prepared sample for your requirement using File property to preload the file and download it from the below location.
To know more about Uploader component preload the file, please refer the below documentation link.
if you faced the issue yet, please share below information that will help us to validate and provide the solution earliest.
- Share code snippet for File property assigned value with replicate issue.
- Share your script and NuGet Details.
- If possible, reproduce your issue in the above sample.
Regards,
Gopi G.