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.
Share
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: