I have this script that resizes images before uploading and display a progress bar.
resizeAndUpload: function (file) { var $row = filemanager.renderFileUpload