I've integrated the following piece of code into my CakePHP (Version 1.3): http://sourceforge.net/projects/cakefileupload/
It is working fine and I'm successfully being able to upload files to the server after clicking the upload button. However, I would like the files to be uploaded automatically as soon as I select them.
I added the autoUpload: true option to the jquery.fileupload.js and I changed the add function to the following:
add: function (e, data) {
if (data.autoUpload || (data.autoUpload !== false &&
$(this).fileupload('option', 'autoUpload'))) {
data.process().done(function () {
data.submit();
});
}
},
Regardless, I still have to click the upload button in order for the files to go to the server. Any ideas how to enable the automatic upload?
Thank you!