I am working on a Blazor Auto application using the Upload component to upload images for a product for various properties in a SaaS type system.
I found that when I adjust the save point in the application at runtime the SaveUrl does not seem to retain the value.
For example:
SaveImageUrl = $"api/property/{TenantSelectionService.SelectedTenant.Id}/product-types/{TypeCode}/images";
<TelerikUpload AllowedExtensions="@(new List<string>() {".jpg", ".jpeg", ".webp" })"
SaveUrl="@SaveImageUrl"
WithCredentials="true"
OnUpload="@OnUploadAsync">
This is set in two locations, OnAfterRender as well as OnTenantSelectionChanged event.
When using this method, it appears that the Upload component does not retain the SaveUrl for some reason. When examining the JavaScript, the URL is always blank.
I did manage to alter the URL to a static version and pass data as a header.
Is this something that can be looked into or maybe I am doing it wrong.