Is there a way to display custom message when File download is failed?

Hi, 


I want to display a custom message whenever file download is failed.


1 Reply

KR Keerthana Rajendran Syncfusion Team December 2, 2021 09:26 AM UTC

Hi Yamini, 

Thanks for contacting Syncfusion support.  

We checked your requirement to show custom message whenever the Download operation is failed. In File Manager, the Download operation is processed using form element. We have not implemented these operations using AJAX requests. So, the Download operation doesn’t return any response from the server and we cannot trigger the client side events such as “Success” and “Failure” for Download operation.  
  
We have also validated the feasibility to handle this in File Manager component, but we identified that we cannot capture any response with form submit. Also, we couldn’t change this into AJAX request due to existing behavior of form post.  

Refer to the below blogs for more details on this. 
  

  
  
However, you can fetch the success/failure response and exception details for all the other operations(Read, Upload etc.,) of File Manager, except Download and GetImage. 

Please let us know if any concerns. 

Regards, 
Keerthana R. 


Loader.
Up arrow icon