Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Dynamic save and remove URL is not working in the Uploader component.
Issue reproducing sample: https://www.syncfusion.com/downloads/support/directtrac/309929/ze/Blazor_Upload_App_Repro_6a1761f6
<SfUploader @ref="uploader" ID="UploadFiles" DropArea=".control-fluid">
<UploaderEvents Success="OnSuccess" FileSelected="SelectedEvent"></UploaderEvents>
<UploaderAsyncSettings SaveUrl="@SaveUrl"></UploaderAsyncSettings>
</SfUploader>
@code{
protected override async Task OnParametersSetAsync()
{
if (EntityId != null)
{
this.SaveUrl = $"api/SampleData/{EntityId}/Save";
}
//if (EntityId != null)
//{
// GridData = await db.Documents
// .AsEnumerable()
// .Where(x => x.ParentId == EntityId)
// .ToAsyncEnumerable()
// .ToListAsync();
//}
// just to trick the async method since the DB code is not included
await Task.CompletedTask;
this.StateHasChanged();
}
public void SelectedEvent(SelectedEventArgs args)
{
this.SaveUrl = "api/SampleData/d061bdac-29d0-4807-88d3-4606dc887873/Save";
}
}