justinl
justinl

Reputation: 10548

How to automatically upload a file once it has been "Browsed" without submitting the form

I have a website were users can create a profile and upload an image for their avatar. The way I have it set up now is a simple HTML form one with an upload box where you Browse to pick a file, and then press "upload" to submit the form.

What technology/language would be the best to have the image automatically upload and display on the page once the file is selected WITHOUT submitting the form.

A live example of what I would like is how Gmail uploads their attachments automatically once you pick the file from the file browser.

Thanks

Upvotes: 0

Views: 463

Answers (1)

Christian C. Salvadó
Christian C. Salvadó

Reputation: 827704

You could use a library like SWFUpload, which is JavaScript/Flash based.

Check the demos and this question for more alternatives.

Upvotes: 1

Related Questions