Page 1 of 1

Upload progress bar?

Posted: Thu Sep 07, 2006 8:28 pm
by Mr Tech
How do you make a script read the progress of an upload... Here's an example at http://www.rapidshare.de/

When you upload a file, it says how much of the file has been uploaded...

How do I do this?

Posted: Thu Sep 07, 2006 8:33 pm
by Luke
far as I know... it can't be done with php... do a search for "upload progress" on this site... there have been many of them recently about this. You will need to use some other technology to accomplish this task.

Posted: Thu Sep 07, 2006 8:41 pm
by Christopher
There is a patch somewhere for PHP that you can use to add this capability to PHP -- but you must compile PHP yourself. I don't know if the patch is still supported.

Otherwise the usual way is to use a Perl CGI script. You can find these around and there are several packaged solutions for PHP that do this.

Posted: Fri Sep 08, 2006 12:23 am
by RobertGonzalez
Another thing to try is searching these forums and searching google. This topic is a rather common topic around here and typically gets the same response... use a client-side technology.

I have done this... Here is what I suggest.

Posted: Fri Sep 08, 2006 3:20 pm
by travist349
I have implemented an upload progress bar for my site.

I used the TesUpload by Thomas Epineer. It works great!

It uses a colaboration of PHP, Pearl, and AJAX to create a progress bar that will update without a page reload.

Let me know if you have any more questions.

Posted: Sun Sep 10, 2006 7:38 pm
by Mr Tech
Thanks Travis,

I gave the TesUpload a try and also another script but the name of MegaUpload. When I do an upload for both scripts, it doesn't display the file I uploaded but a bunch of letters and numbers in the tmp directory. E.g: 3dsa78asd78329

How do I get it to upload the actual file? I'm looking at the uploads through an FTP.

Posted: Tue Sep 12, 2006 6:20 pm
by Mr Tech
Any ideas? I still can;t get it to work...

Posted: Tue Sep 12, 2006 6:22 pm
by RobertGonzalez
Does the TesUpload app have a forum or documentation you can refer to?

Posted: Tue Sep 12, 2006 8:13 pm
by Mr Tech
Don't think so,... I foudn a better one anyway... It isn't in PHP but in Perl and would be easy to integrate anyway... The free version does the job.

http://www.sibsoft.net/xupload.html