After having chosen a file for upload, I want the file to be uploaded to database without the click of a button. How is this done using jQuery?
I would like to choose a file like this:
https://i.stack.imgur.com/0408T.gif
<input type="file" valign="baseline" />
Assuming you’re using a form:
EDIT: To keep this answer up-to-date:
There is a nice way to upload files via AJAX without hacks described here:
http://net.tutsplus.com/tutorials/javascript-ajax/uploading-files-with-ajax/