Upload progress bar?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Mr Tech
Forum Contributor
Posts: 424
Joined: Tue Aug 10, 2004 3:08 am

Upload progress bar?

Post 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?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
travist349
Forum Newbie
Posts: 3
Joined: Fri Sep 08, 2006 3:16 pm

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

Post 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.
User avatar
Mr Tech
Forum Contributor
Posts: 424
Joined: Tue Aug 10, 2004 3:08 am

Post 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.
User avatar
Mr Tech
Forum Contributor
Posts: 424
Joined: Tue Aug 10, 2004 3:08 am

Post by Mr Tech »

Any ideas? I still can;t get it to work...
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Does the TesUpload app have a forum or documentation you can refer to?
User avatar
Mr Tech
Forum Contributor
Posts: 424
Joined: Tue Aug 10, 2004 3:08 am

Post 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
Post Reply