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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:44:45+00:00 2026-06-05T09:44:45+00:00

I would like to build a site that allows me to upload a file,

  • 0

I would like to build a site that allows me to upload a file, and then show the progress of processing the file live. The client would upload a delimited file. Once uploaded I would verify the headers / columns in the data. If this follows a given template then I would process the lines one at a time and would like to give live feed back to the user as this happens. I know PHP is ran at the time of the get request and thus I figure the approach would require ajax to accomplish my goals. How do I go about doing something like this. Any pseudo code, examples, or tutorials would be greatly appreciated.

  • 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-05T09:44:47+00:00Added an answer on June 5, 2026 at 9:44 am

    I have done something similar in the past. What you need to do it start the file processing. After a set interval of time, such as a second, you can use an ajax call to poll the server to see the progress of processing the file.

    By the way, I would recommend jqueryUI progressbar for the progress bar and uploadify for the uploader.

    Javascript:

    setTimeout("UpdateProgressBar();", 1000);
    
    $.ajax({
        type: "POST",
        async: true,
        data: // params go here
        url: // path to web method
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (result) {
             // Do stuff when file is finished processing
        },
        error: function (XMLHttpRequest, textStatus, errorThrown) {
            if (errorThrown != null)
                alert(textStatus + " : " + errorThrown);
        }
    });
    
    function UpdateProgressBar() {
        $.ajax({
            type: "POST",
            async: true,
            data: // my params go here
            url: // path to web method
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (result) {
                var totalRecords = result.d.TotalRecords;
                var recordsProcessed = result.d.RecordsProcessed;
                var percentProcessed = pagesProcessed / totalRecords;
    
                $('#div_ProgressBar').progressbar("value", percentProcessed);
    
                if (recordsProcessed < totalRecords)
                    setTimeout("UpdateProgressBar();", 800);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                if (errorThrown != null)
                    alert(textStatus + " : " + errorThrown);
            }
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to do a site in PHP/MySQL using either Drupal/Joomla/Wordpress that allows
I would like to build a web app that allows users to post THEIR
I would like to build a php script that automatically generates a new id
I would like to build a web application that heavily relies on the Yodlee
I would like to build a query that will pull the number of rows
I would like to build (or find) a php reporting library that I can
I would like to build a webpart that is going to display list content
I would like to build a cypher with python which decoding text by repeatedly
I would like to build up a new IDocument object step by step using
I would like to build modules via an aggregator, but avoid the aggregator project

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.