Upload with paramers

Hello,

im trying to upload file with additionnal parameter (page parameter - integer).
I tried to set the parameter like in the demo, but it does not pass to the upload controller, the id is always 0.
@code {

int id = 1;

}

How can I pass parameter to the upload?

Thanks for help!

Parameters are passed via the Url property of the Upload.

Ok, but how exactly can i achieve it?
I set the value clientId in the Page Load and then I want to pass it to the Upload in the Url: upload/${clientId} or upload/{${clientId}} do not work. Am I doing it wrong?

Thank You!

Try setting the property like this:

@($"upload/{clientId}")

This special syntax is required because Blazor does not support interpolation in string properties by default.

It works, thank you!