2

Possible Duplicate:
Upload Progress Bar in PHP

forgive me if this is a stupid question but im only 15 and I just cant seem to find the answer on the internet.

how can i query the a server for status information of a file upload using php/js? I would use jquery for callbacks if necessary. I am trying to get the upload progress to build a little display bar.

Community
  • 1
  • 1
roozbubu
  • 1,106
  • 4
  • 14
  • 30
  • 2
    Please see [Session Upload Progress](http://www.php.net/manual/en/session.upload-progress.php) which is what PHP offers to obtain progress for a file-upload. – hakre Oct 22 '11 at 16:50
  • If you're 15 and posting on SO, keep going and stick with the programming as much as you can – EhevuTov Oct 22 '11 at 18:08

1 Answers1

0

You could save the progress on the server, and have another script return it.

I think thats the only option since uploading a file is a header request, and the page wouldn't be able to send back headers until the file was finished uploading.

Adam Fowler
  • 1,750
  • 1
  • 17
  • 18