Hi Edgar,
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.
Response.Headers.Add("status", "File Already Exists"); |
For further details, kindly refer the below link.
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.
Regards,
Prince