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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Single callback for multiple files upload.

Thread ID:

Created:

Updated:

Platform:

Replies:

132354 Aug 28,2017 11:55 AM UTC Aug 29,2017 05:20 AM UTC ASP.NET MVC 2
loading
Tags: Uploadbox
Than Htike Aung
Asked On August 28, 2017 11:56 AM UTC

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

Than Htike Aung
Replied On 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


Prince Oliver [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;