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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to show the number of files loaded in uploadbox

Thread ID:





127608 Nov 28,2016 01:02 PM UTC Dec 6,2016 05:25 AM UTC ASP.NET Web Forms 3
Tags: Uploadbox
Roimer Machacón Otero
Asked On November 28, 2016 01:02 PM UTC

Hi, we're using syncfusion uploadbox. Now this upload the files correctly to a route, but we want know how to show to the user in the form the quantity of files uploaded when this press the close button in the dialog of the uploadbox?

Prince Oliver [Syncfusion]
Replied On November 29, 2016 10:52 AM UTC

Hi Roimer,   
Thanks for contacting Syncfusion support.   
Query: we want know how to show to the user in the form the quantity of files uploaded when this press the close button in the dialog of the uploadbox?   
To show the number of files uploaded, use a variable to count number files uploaded and display the count in a span element. You can use our File select event for resetting the count and success event for counting the number of uploaded files. Refer the following code snippet.   
    <ej:UploadBox ID="Upload1" SaveUrl="saveFiles.ashx"RemoveUrl="removeFiles.ashx" MultipleFilesSelection="true" runat="server"ClientSideOnFileSelect="reset" ClientSideOnSuccess="open"></ej:UploadBox>   
        var count = 0;   
        function open(args) {   
            $("div#files").html('<span>No of files uploaded:' + count + ' </span>')   
        function reset(args) {   
            count = 0;   
            $("div#files").html('<span>No of files uploaded:' + count + ' </span>')   
We have attached a sample for your convenience, refer to the following link:   

Roimer Machacón Otero
Replied On December 5, 2016 04:44 PM UTC

Hi, thanks this work correctly!

Muralishankar Sundaram [Syncfusion]
Replied On December 6, 2016 05:25 AM UTC

Hi Roimer,    
Most welcome, let us know if you have any other concerns. 


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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