The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/storage > UploadTask > cancel

UploadTask.cancel() method

Cancels a running task. Has no effect on a complete or failed task.

Signature:

cancel(): boolean;

Returns:

boolean

True if the cancel had an effect.