that starts the up...">

Using jQuery to download a file without clicking the download button

I would like to have a form element <input type="file">that starts the upload process right after the user selects a file, without having to repeat the second additional step of clicking “upload”.

How can I start the file upload process right after selecting a file and actually transfer files asynchronously?

EDIT : Uploadify looks good - except that Flash requires Flash to download. I would like to try to avoid this if possible. Flash's requirement to download files can be an obstacle for people who are just trying to get photos online. My target audience of the site is people who do not have much experience on the Internet, forms, etc. I try to make the process as simple as possible.

+3
source share
2 answers

You do not need libraries. Create a hidden iframe (visibility: hidden not display: none) with id. Then set the target property on the upload form to this iframe. Run the form as usual.

+4
source

Use Uploadify → http://www.uploadify.com/

+2
source

All Articles