Re: progress bar for uploading files

From: Date: Fri, 16 Aug 2002 19:38:45 +0000
Subject: Re: progress bar for uploading files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113006@lists.php.net to get a copy of this message
This wouldn't work for uploading files however since the long part of the process is the act of uploading the file and until that completes your "save.php" (or whatever) isn't called. So in regards to file uploading it has to be done with Javascript. What you do below is great for scripts that just take a long time though. -philip On Fri, 16 Aug 2002, Peter J. Schoenster wrote: > On 16 Aug 2002 at 23:40, electroteque wrote: > > > hi guys i was wondering if there was anyway to have a progress bar for > > uploading images ? > > TMTOWDI, but here is a way I did something similar. I was spidering remote sites and to get > user's data and store in a database and the user could not continue until > the spider spun it's web. > > I accpeted the data I needed and then returned a page with the HTTP-REFRESH tag in it with > something like this > > <meta http-equiv="Refresh" content="10; > URL=http://yoursite.com/verify_upload?process_id=X&amp;action=check_upload"&amp;timer=X> > > So it refreshes every 10 seconds and checks to see if process X has finished, if so then > redirect to the next step, if not then just return but upgrade the timer so you > can increase your counter (perhaps a percentage in a table cell). > > > Peter > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#113006) next »