TECH adding a progress bar to php uploads?

drpepper

Well-Known Member
Nov 13, 2006
38,001
San Antonio
i heard you cant do this without a patched version of php?
anything simple to add?

it sucks just starting at the fucking screen when the file is 100mb+
if anyone can help me or do it, id be willing to purchase a year sub or some cash monies.
 

whup

I wish you had children and.. so that I could step
Feb 12, 2007
1,592
The good news is a hook in the API finally got added in 5.2 to prevent having to patch PHP.

There's a PECL extension that provides this, but the documentation seems to be thin on the ground:

http://pecl.php.net/package/uploadprogress
Someone wrote some about it: http://uk2.php.net/manual/en/features.file-upload.php#71564

File upload progress however is a client-side concern, so the more of this concern you can get the client to do, the better.

So following that idea, looking at javascript + Flash / Java applet components to show progress is going to perform and scale far better than doing AJAX callbacks to the server for progress.

e.g. something like http://digitarald.de/project/fancyupload/

Sorry I can't give you specific code; the upload progress stuff I've done before was for .NET and when I do it again I'll be taking the javascript/flash/applet approach.
 
TS
TS
drpepper

drpepper

Well-Known Member
Nov 13, 2006
38,001
San Antonio
The good news is a hook in the API finally got added in 5.2 to prevent having to patch PHP.

There's a PECL extension that provides this, but the documentation seems to be thin on the ground:

http://pecl.php.net/package/uploadprogress
Someone wrote some about it: http://uk2.php.net/manual/en/features.file-upload.php#71564

File upload progress however is a client-side concern, so the more of this concern you can get the client to do, the better.

So following that idea, looking at javascript + Flash / Java applet components to show progress is going to perform and scale far better than doing AJAX callbacks to the server for progress.

e.g. something like http://digitarald.de/project/fancyupload/

Sorry I can't give you specific code; the upload progress stuff I've done before was for .NET and when I do it again I'll be taking the javascript/flash/applet approach.
thanks. good start.

but :ugh: at this:
How to use

Will be written for the final release, at this time the showcases are the best documentation.
 

Shampoo

Rinse & Repost
May 5, 2004
60,063
California
I've only seen a working version for Perl and Flash written. I too am also looking for such a thing to be made for PHP
 

Users who are viewing this thread

About Us

  • Please do not post anything that violates any Local, State, Federal or International Laws. Your privacy is protected. You have the right to be forgotten. Site funded by advertising, link monetization and member support.
OT v15.8.1 Copyright © 2000-2022 Offtopic.com
Served by fu.offtopic.com

Online statistics

Members online
117
Guests online
35
Total visitors
152

Forum statistics

Threads
369,610
Messages
16,900,085
Members
86,875
Latest member
Theodor