RadzenFileUpload not setting Name attribute

When looking at “RadzenFileUpload” it has a property called “Name” (like many other components) but with RadzenFileUpload it appears that Name is not being set in the html tag. An example is the RadzenFileInput which sets the “name” attribute on the input html tag.

Is this per design or something that can be fixed?

Hi @asilva,

You can use the InputAttributes parameter to set the name attribute on the underlying file input:

<RadzenUpload Url="upload/single"                                          
   InputAttributes=@(new Dictionary<string, object> { { "name", "myFile" } }) />                                                                                             

You can use the InputAttributes parameter as a workaround to set the name attribute on the underlying file input:

<RadzenUpload Url="upload/single"                                          
              InputAttributes=@(new Dictionary<string, object> { { "name", "myFile" } }) />                                                                                                                              

This will render name="myFile" on the <input type="file"> element.