A XMLHttpRequest file upload script with progress updates.