Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9229867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:40:45+00:00 2026-06-18T05:40:45+00:00

I am using the blueimp File Upload plugin to implement some file upload functionality

  • 0

I am using the blueimp File Upload plugin to implement some file upload functionality and I’ve noticed that there can be large gaps of time between when my last file progress bar hits 100% and when the stop and done events fire.I have the following code:

        $('#fileupload').fileupload({
            dataType: 'json',
            progress: function (e, data) {
                var progress = parseInt(data.loaded / data.total * 100, 10);
                var bar = data.context.children().children(".progress");
                $(bar).css("width", progress + "%");
            },
            add: function (e, data) {
                data.context = $("<div></div>").html("Uploading...<div class='progressHolder'><div class='progress'>&nbsp;</div></div>").appendTo($("#files"));
                data.submit();
                $("#processing").fadeIn();
            },
            stop: function (e, data) {
                $("#uploadFiles").fadeIn();
                $("#processing").fadeOut();
            },
            done: function (e, data) {
                $.each(data.result.files, function (index, file) {
                    idArray.push(file.Id);
                });
            }
        });

Does anyone know why this would be happening? How can I make it so that the progress bars take into account when done/stop will be called?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:40:46+00:00Added an answer on June 18, 2026 at 5:40 am

    When you upload a file, the file is first (obviously) uploaded to the server, the server then will execute the requested server-side script where you then handle the file. If the “handle the file” part of the request isn’t instant, there will be a delay between the progress reaching 100% and the done callback being triggered. There may also be a delay if there is network lag.

    The progress event only tracks the progress of the upload, not the progress of the request.

    One solution would be to have your progress bar stop at say, 90% then bump it to 100% in the done callback. simply multiply data.total by 1.1

            progress: function (e, data) {
                var progress = parseInt(data.loaded / (data.total*1.1) * 100, 10);
                var bar = data.context.children().children(".progress");
                $(bar).css("width", progress + "%");
            },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All, I'm using the following jQuery plugin: https://github.com/blueimp/jQuery-File-Upload You can see that in the
I am using blueimp's Jquery file upload plugin . For adding files, there are
jQuery File Uploader: https://github.com/blueimp/jQuery-File-Upload I'm using the plugin above. How in jQuery can I
I am using the Blueimp Jquery file upload plugin on my website, and I
I am using jquery fileupload plugin with Jquery UI https://github.com/blueimp/jQuery-File-Upload/wiki/Options I want to overiride
I am using the Blueimp/jQuery-File-Uploader and the Amazon S3 plugin that is available for
I am using the plugin https://github.com/blueimp/jQuery-File-Upload I have done basic setup given on https://github.com/blueimp/jQuery-File-Upload/wiki/Basic-plugin
I am using Blueimp Jquery File Upload plugin to upload files asynchronously. It works
I am using the BlueImp jQuery-file-upload to upload files to server. The upload accounts
I'm using jquery file uploader (per blueimp) and I'm wondering how I can direct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.