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 choos
Use jQuery's plugin uploadify
It's great plugin which has many options, and auto-upload, too
$(document).ready(function() {
$('#file_upload').uploadify({
'uploader' : '/uploadify/uploadify.swf',
'script' : '/uploadify/uploadify.php',
'cancelImg' : '/uploadify/cancel.png',
'folder' : '/uploads',
'auto' : true
});
});