In RadzenUpload I want to change the target file name. But I could not succeed in the passing parameter to UploadControl. When I try to set URL property with querystring option (such as upload/single?${somevariable}), the component returns an error (do not support complex content).
I checked out the posts and samples.
The sample named "Upload with additional parameter" can be a solution. But I could not figure out how can fill the {1} in this sample.
I found the reason.
When I declare the Url property in the Radzen, I had been used the default notation such as upload/{Id}. In this case, Radzen does not create a proper format in the generated code.
But when I wrote @($"upload/{Id}") line in the Url property everything is solved.
I'm learning the Radzen point of view. Which code is generated directly and which one is pre-processed must be known.
@koksal.basar thanks a lot for posting your solution. I ran into the same issue.
Url property for the RadzenUpload component within Radzen with the content /upload/single/${parameters.Id} caused error RZ9986: Component attributes do not support complex content (mixed C# and markup). Attribute: 'Url', text: '/upload/single/Id'
The following parameter value worked for passing a parameter ${"/upload/single/" + parameters.Id}