POPrince Oliver Syncfusion Team March 4, 2019 06:26 AM
Thank you for you contacting Syncfusion support.
Query 1: What is Reponse.clear(), Response.statusCode and phraseDescription?
After the server-side actions gets completed, we need to send the response to client side with proper status code and details. By using Response.clear() we have cleared the details from http and have updated the details in the response.
In our samples, we will not allow to save the files in our server due to security reasons. So, to display the selected files in success state we have return the status code as 204.
Phrase descriptions are used to send the custom messages from server side to client side. But it will work up to dot net core 2.0 only. Dot net core 2.1 and above versions doesn’t have a reasonPhrase support, we need to send the custom data using headers only. Please refer the below code block.
Query 2: the way of returning response is Ok(result) where result contains processed renamed file with additional info
You can get the additional data from the server by using the argument “e” in success/failure events. Please refer the below screenshot.
Please let us know if you need any further assistance on this.
NBNaresh BishtMarch 24, 2020 02:30 AM
Hi sir, I'm also going through this situation can you please send me a project where you have implemented this I'm a beginner in web development thus having a very hard time understanding this a project where it changes the text to "File already exist" when a file with the same name already exist in the database will help me to understand it much better.
NBNaresh BishtMarch 24, 2020 05:23 AM
Okay, I got it now all I had to do was add this in my view -