2

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

3 Answers 3

2
Sign up to request clarification or add additional context in comments.

Comments

2

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.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.