I have the following code to upload a file with JavaScript (because I want to show a progress bar):
JavaScript
function uploadFile() { var e = _("f