Re: PHP file upload progress bar?

From: Markus Ernst (derernst_at_NO#SP#AMgmx.ch)
Date: 05/19/04


Date: Wed, 19 May 2004 15:55:08 +0200


"LRW" <deja@celticbear.com> schrieb im Newsbeitrag
news:3a1d1813.0405180710.52609863@posting.google.com...
> "Markus Ernst" <derernst@NO#SP#AMgmx.ch> wrote in message
news:<40a9d5cb$0$8129$afc38c87@news.easynet.ch>...
>
> > If you use FTP instead of HTML file upload you get the bar. You can use
for
> > example MS Internet Explorer as an FTP client to just drag and drop
files to
> > the server.
>
> Well, the upload applet is for customers to be able to upload files
> for printing, business cards, bookmarks, that kind of thing.
> It needs to be as simple and as automated and seamless with the site
> as possible.
> And it works great, we've had no problems, except that people don't
> see any kind of progress bar and think it's stalled while uploading
> and abort when actually everything's fine.
>
> In response to another question, I guess it doesn't matter if it's
> Pearl or Javascript. I'm just looking for something that'll work. =)

If you like creative workarounds I could suggest the following:
- Make an animated gif that shows a turning wheel or something similar
- Place it inside a hidden <div> together with some text such as "Upload in
progress" or whatever. If you choose position:absolute in the CSS definition
you can even place it upon the form.
- Add an onClick event to the submit button to change the <div>s visibility
to visible.

Like that the user sees something that tells him/her that something actually
happens.

HTH
Markus