Skip to content

Commit

Permalink
Update API reference with information on how status changes
Browse files Browse the repository at this point in the history
  • Loading branch information
a179346 committed Mar 3, 2024
1 parent ea9366a commit 9eb2662
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,6 @@ dist
.tern-port

todo
.vscode
.vscode

excalidraw
Binary file added assets/how-status-changes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion docs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ status: 'pending' | 'uploading' | 'pausing' | 'paused' | 'aborted' | 'complete'

The status of the uploader

Reference: [How status changes](#how-status-changes)

#### __bytesUploaded__ - `Accessor`

```ts
Expand Down Expand Up @@ -289,4 +291,10 @@ interface ChunkFormData {
}
```

The form data that is sent with each chunk. This includes the chunk blob, the offset, the length, and other information.
The form data that is sent with each chunk. This includes the chunk blob, the offset, the length, and other information.

# Others

## How [status](#status---accessor) changes

![How status changes](../assets/how-status-changes.png)

0 comments on commit 9eb2662

Please sign in to comment.