SJRK-399: Cancel file uploads on block removal

Metadata

Source
SJRK-399
Type
Improvement
Priority
Major
Status
Open
Resolution
N/A
Assignee
N/A
Reporter
Gregor Moss
Created
2020-10-13T20:34:36.291-0400
Updated
2020-10-13T20:35:10.805-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Storytelling Tool Server
  2. Storytelling Tool UI

Description

When a media block (image, audio, video) is in the process of uploading a file and the block is removed, the upload should be cancelled. This work depends on SJRK-289 being completed, or it may be included in the work for that Jira.

This may be achieved via XHR.abort() (documentation available from the W3C, MDN and good old StackOverflow).

In future iterations of the tool, this work may also be applicable if there is a "cancel upload" button or similar.