Improve Upload Error Handling

Description

On h5p.org, when uploading large files you will get the 'ERR_CONNECTION_RESET'. When trying to read the contents of the iframe you get another error from trying to access a cross-origin frame.

You will never be told about any of these errors and the uploading throbber just continues to spin.

Environment

None

Acceptance Criteria

Trouble uploading always removed the throbber and display an error message that the file might be too large.

Status

Assignee

Unassigned

Reporter

Frode Petterson

Labels

None

Funding

None

Code reviewer

None

Released

None

Time tracking

6h

Fix versions

None

Sprint

None

Priority

High