My requirement is to post an uploaded file to the Signak R Hub method from the Js where we call the
testProcessServer.server.uploadFileValidation();
To the "UploadFileValidation" , I want to send the File being uploaded. But using the HttpContext.Current.Request.Files["Name"] is giving null.
var uploadFile = new FormData();
var files = $("#prFileUploader").get(0).files;
// Add the uploaded file content to the form data collection
if (files.length > 0) {
//get folder icon id
uploadFile.append("CsvDoc", files[0]);
}
Please suggest here, what should be used so that I can get the file contents in the Method inside the Signal R Hub.cs file.
Thank You