Hello,
I'm using angular file manager and aspnet core web api in a project.
in file manager we are uploading files and validating files and given as response custom message.
but I am unable to use failure method to capture the response from server
Client side:
onUploadFail(args)
{
let response = JSON.parse(args.e.target.response);
args.statusText = response.message;
console.log(response.message);
}
Server side:
Response.Clear();
Response.ContentType = "application/json; charset=utf-8";
Response.StatusCode = 404; //200
Response.Headers.Add("status","Custom Message");
if I send the statuscode as 404 means it will automatically trigger, file already exists popup, Instead of that I need to show a custom popup message.
kindly share the sample if available.
Thanks in advance