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 7077033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:22:21+00:00 2026-05-28T06:22:21+00:00

I’m wondering if my solution to receiving progress indication of an upload would work,

  • 0

I’m wondering if my solution to receiving progress indication of an upload would work, and if it’s possible, am I going about it the right way? It doesn’t have to be really accurate, I just want a little more than a spinning, animated icon.

1) On upload form page ////////

Submit upload form & files to processing page.

2) On processing page /////////

For Each file In myFileArray Then
   ' Save the file
   ' Add 1 to a cookie called progressReport
Next

3) On upload form page ///////

checkTimer = window.setInterval(function () {
    var cookieContents = $.cookie('progressReport');
    if (cookieContents != "")
    $('#uploadProgress').html(cookieContents + ' files uploaded');
}, 2000);

—- UPDATE —-

Thanks to a below answer, I cannot accomplish this because the cookie would not get written until the page finished processing – meaning the user wouldn’t get any feedback until it had finished. Useless!

I’ve changed my plan. This suits my application, probably not to some.

1) Make AJAX call to server page that creates a unique ID and a folder named, ‘unique ID’. When done, send ID back as response, add unique ID to hidden input in upload form.

2) User submits file(s), check ID is present in hidden input, then post to a hidden iFrame. On submission, make an AJAX call to another server page every 1-5 seconds, checking how many files are in that folder, send quantity back as response, update progress panel.

  • 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-05-28T06:22:22+00:00Added an answer on May 28, 2026 at 6:22 am

    It won’t work because this:

    For Each file In myFileArray Then
       ' Save the file
       ' Add 1 to a cookie called progressReport
    Next
    

    Will not write the cookie to the browser until all the files are finished.

    You need to devise a way to start uploading these files one by one from the client side. Your processing page receives only one file; increments the value in the cookie and finishes the response. In other words, your processing page ends up being called n times for n files. Your javascript code keeps reading the cookie every 2 seconds and displaying the value that was updated by the last response.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I would like to run a str_replace or preg_replace which looks for certain words
I am using Paperclip to handle profile photo uploads in my app. They upload
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

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.