Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/version-4' into version-4
Browse files Browse the repository at this point in the history
  • Loading branch information
Julie Turner committed Sep 16, 2024
2 parents e0b018f + 51ea8dc commit fd8cb39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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
2 changes: 1 addition & 1 deletion docs/sp/lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ console.log(r.Title);
});
```

You can also provide other (optional) parameters like description, template and enableContentTypes. If that is not enough for you, you can use the parameter named 'additionalSettings' which is just a TypedHash, meaning you can sent whatever properties you'd like in the body (provided that the property is supported by the SharePoint API). You can find a [listing of list template codes](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.splisttemplatetype?view=sharepoint-server) in the official docs.
You can also provide other (optional) parameters like description, template and enableContentTypes. If that is not enough for you, you can use the parameter named 'additionalSettings' which is just a TypedHash, meaning you can sent whatever properties you'd like in the body (provided that the property is supported by the SharePoint API). You can find a [listing of list template codes](https://learn.microsoft.com/en-us/openspecs/sharepoint_protocols/ms-wssts/8bf797af-288c-4a1d-a14b-cf5394e636cf) in the official docs.

```TypeScript
// this will create a list with template 101 (Document library), content types enabled and show it on the quick launch (using additionalSettings)
Expand Down

0 comments on commit fd8cb39

Please sign in to comment.