Razor code-behind method: I made the razor method as simple as possible, just to see if we could get in there / or hit onpostUploadFile
public async Task<ActionResult> OnPostUploadFile(IEnumerable<IFormFile> files, string metaData)
{
AllowedExtensions = new string[] { "fpd", "pdf" };
return Page();
}
Razor page :
@addTagHelper *, Kendo.Mvc <div> <div class="demo-section"> <kendo-upload name="files"> <async auto-upload="true" save-url="@Url.Action("Upload","UploadFile")" chunk-size="11000" /> <validation max-file-size="20000000" /> </kendo-upload> </div> </div>
The issue is i am not able to hit the hander from the razor page when i pass the url to <async save-url="">, Despite many efforts, the handler specified in the save-url attribute doesn't seem to be hit and returns 404.
Not Working:
1. save-url: "/Upload/UploadFile",
2. save-url="./Upload?handler=UploadFile"
I also found Forum where it discussed the same problem but that didn't help us :https://www.telerik.com/forums/upload-using-tag-helpers