RadzenUpload component: Where is the file being uploaded to?

I am using
<RadzenUpload Url="upload/single" Icon="upload" ChooseText="" Progress=@(args => OnProgress(args, "PartsBreakdownDoc")) Style="width: 10%" InputAttributes="@(new Dictionary<string,object>(){ { "aria-label", "select file" }})"/>

void OnProgress(UploadProgressArgs args, string name)
 {
     if (args.Progress == 100)
     {
         if (name == "PartsBreakdownDoc")
         {
             am.PartsBreakdownDoc = args.Files.ElementAt(0).Name;
         }
     }
 }

I am able to get the file name and progress is 100 but where does the file go? I am unable to find it on my webserver? Do I need to do anything else to get the file to upload? How would I specify the upload folder?
Thank you,
Peter

This points to a method of a Controller - in our demos it’s called UploadController.

1 Like

Thank you. Is there any way to send parameters to the "single" function?

Yes, there is a even demo exactly for that.

1 Like