Improve upload progress bar error handling

- Sequence requests instead of sending concurrent requests
- Also avoid errors when the parent frame gets detroyed while the status
  request is still ongoing.
Validate file sizes in JS (when possible).