> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revoengine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# storage.abortUploadSession()

> Public low-code contract, signatures and examples for storage.abortUploadSession.

## `storage.abortUploadSession()`

Cancels an active upload session.

Notes:

* Unavailable with `readOnly: true` (throws an error).

### Overloads

```ts theme={null}
static abortUploadSession(
      storageUploadSessionId: string,
    ): Promise<StorageUploadSession>;

static abortUploadSession(
      namespace: string,
      storageUploadSessionId: string,
    ): Promise<StorageUploadSession>;
```

### Example

```ts theme={null}
await storage.abortUploadSession(storageUploadSessionId);
```

See [all storage methods](https://docs.revoengine.com/low-code/reference/storage.md) or [runtime basics](https://docs.revoengine.com/low-code/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.