Skip to main content

abort()

cancels the upload of a file(s)

abort(id?: string): void;

Parameters:

id: string - optional, the ID of a file

Example

vault.uploader.abort("file_id");

If the parameter isn't passed, the method cancels upload of all files in the queue.