We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Single callback for multiple files upload.

Razor 
@Html.EJ().Uploadbox("uploadbox").SaveUrl("/api/call").AutoUpload(true).AllowDragAndDrop(true).ClientSideEvents(e => e.Complete("onSuccess"))

function onSuccess(sender, args) {
        console.log("success");
    }
When multiple files are dragged and dropped, there are multiple requests to SaveUrl but only one success is called. 
How can I achieve multiple callbacks?
Thanks

2 Replies

TH Than Htike Aung August 28, 2017 12:06 PM UTC

@Html.EJ().Uploadbox("uploadbox").SaveUrl("/api/call").AutoUpload(true).AllowDragAndDrop(true).ClientSideEvents(e => e.Success("onSuccess"))


Solved by using success event. I'll posted here as future reference.

Thanks



PO Prince Oliver Syncfusion Team August 29, 2017 05:20 AM UTC

Hi Than, 

Thank you for contacting Syncfusion forums. 

We are glad to know that you found solution for your issue. 

Regards, 
Prince 


Loader.
Up arrow icon