Skip to content

Commit

Permalink
Merge pull request #3122 from pnp/patrick-rodgers-patch-2
Browse files Browse the repository at this point in the history
Update files.md
  • Loading branch information
juliemturner authored Aug 26, 2024
2 parents 891f9e9 + 7422133 commit d016c09
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docs/sp/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,15 @@ Both the addChunked and setContentChunked methods support options beyond just su

A method that is called each time a chunk is uploaded and provides enough information to report progress or update a progress bar easily. The method has the signature:

`(data: ChunkedFileUploadProgressData) => void`
`(data: IFileUploadProgressData) => void`

The data interface is:

```typescript
export interface ChunkedFileUploadProgressData {
export interface IFileUploadProgressData {
uploadId: string;
stage: "starting" | "continue" | "finishing";
blockNumber: number;
totalBlocks: number;
chunkSize: number;
currentPointer: number;
fileSize: number;
offset: number;
}
```

Expand Down

0 comments on commit d016c09

Please sign in to comment.