Uploading files with a progress bar and percentage   AJAX XMLHTTPRequest