views:

205

answers:

4

hi all,

i am using php to upload the file to server, HTML and javascript on the client side.

i want to create a determinent progress bar which progress of the file upload,using javascript

Regard, fresher

A: 

The fastest way that don't require any server-side configuration is http://swfupload.org/

afaik any other methods require some additional software/plugins for web server.

Deniss Kozlovs
A: 

Have a look at this Simple javascript progress bar

Pandiya Chendur
This is just a visual progress bar, not showing actual file upload.
Deniss Kozlovs
+2  A: 

I thought i will add a few words to discussion :)

As far as I know you are not able to monitor file upload from Javascript only.
Javascript is tool to dynamically update client side - your progress bar.

Means your solution really depends on control you're having over the server machine.
To follow file progress you can write server side script or use http server built in functions. Again depending on your server, this can be PHP Pecl extensions' functions, simple Perl script checkin status of the file on server, etc.

Note: You can also add another client-side technology here - Flash, which can monitor the status of sent files.

Tomasz Durka