I'm having a problem changing the filename on upload. The control reports the file was uploaded with the new name, but the controller's file.ContentDisposition looks like this:
form-data; name="file"; filename="Original.png"
Here's my OnSelectHandler:
private void OnSelectHandler(UploadSelectEventArgs e)
{
if (e.Files.Count > 1)
{
e.IsCancelled = true;
}
foreach (var file in e.Files)
{
file.Name = "New.png";
}
}
I've also tried modifying the method to be private Task OnSelectHandler which returned Task.CompletedTask,