Custom message for Upload

Hi,

We are trying to customize the message after uploading the file. Please let us know the events available to achieve the same

UploadUrl = "http://localhost:62869/api/SQLProvider/SQLUpload

3 Replies 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team June 26, 2020 11:12 AM UTC

Hi Mahesh,  
 
Greeting from Syncfusion support.  
 
We have checked your requirement with FileManager component. Success event will trigger after the file uploaded in FileManager. You can change the upload message using that event. 
 
Refer the below code snippet. 
@Html.EJS().FileManager("file").AjaxSettings(new Syncfusion.EJ2.FileManager.FileManagerAjaxSettings 
             { 
                 Url = "http://localhost:62869/api/SQLProvider/SQLFileOperations", 
                 GetImageUrl = "http://localhost:62869/api/SQLProvider/SQLGetImage", 
                 UploadUrl = "http://localhost:62869/api/SQLProvider/SQLUpload", 
                 DownloadUrl = "http://localhost:62869/api/SQLProvider/SQLDownload" 
             }).Success("success").Render() 
 
<script> 
    function success(args) { 
        if (args.action == "Upload") { 
            // Change the upload text. 
             args.result.statusText = "File uploaded"; 
        } 
    } 
</script> 
 
Refer the below sample and service link. 
 
 
 
Note: Run the service and refer the local host URL in FileManager sample. 
 
To know more about the FileManager component, refer the below links. 
 
 
 
 
Please let us, if you need any further assistance. 
 
Regards,  
Sowmiya.P 



Marked as answer

MM Mahesh Machina June 26, 2020 11:32 AM UTC

Thank you Sowmiya. I have explored that event and completed my achievement already


SP Sowmiya Padmanaban Syncfusion Team June 29, 2020 03:35 AM UTC

Hi Mahesh,  
  
We are happy to hear that your problem has been resolved. Please contact us, if you need any help from us. 
  
Regards,  
Sowmiya.P 


Loader.
Up arrow icon