Temporary fix for bug in fileupload.js