I\'m using the very good jquery plugin blueimp / jQuery-File-Upload
$(\'#fileupload\').fileupload({
autoUpload: true
, filesContainer: \'#attachments_prese
// Initialize the jQuery File Upload widget:
$('#edit-product').fileupload({
// Uncomment the following to send cross-domain cookies:
//xhrFields: {withCredentials: true},
disableImageResize: false,
autoUpload:false,
url: 'YOURURL'
}).bind('fileuploaddone', function (e, data) {
console.log(data.result.files[0]);
});