RadzenUploadHeader value is null if bound to property

I'm using a upload control and per documentation I've added a RadzenUploadHeader to add the Bearer Token..

I set the access token in the OnInitializedAsync

protected override async Task OnInitializedAsync()
var accessTokenResult = await TokenProvider.RequestAccessToken();
if (accessTokenResult.TryGetToken(out var token))
accessToken = "Bearer " + token.Value;

However the Authorization header always null. It only seems to work if I hard code it in the RadzenUploadHeader

Am I missing something here.. Do I have to set the value earlier somehow?

Hi @jzoss,

There may be indeed an issue with setting the header after initialization. We will investigate and apply a fix.

Hello! Was this fixed?

Yes. This should have been fixed.

1 Like