File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ export class LargeFileUploadTask<T> {
127127 * @async
128128 * Makes request to the server to create an upload session
129129 * @param {Client } client - The GraphClient instance
130+ * @param {string } requestUrl - The URL to create the upload session
130131 * @param {any } payload - The payload that needs to be sent
131132 * @param {KeyValuePairObjectStringNumber } headers - The headers that needs to be sent
132133 * @returns The promise that resolves to LargeFileUploadSession
@@ -295,6 +296,7 @@ export class LargeFileUploadTask<T> {
295296 . headers ( {
296297 "Content-Length" : `${ range . maxValue - range . minValue + 1 } ` ,
297298 "Content-Range" : `bytes ${ range . minValue } -${ range . maxValue } /${ totalSize } ` ,
299+ "Content-Type" : "application/octet-stream" ,
298300 } )
299301 . put ( fileSlice ) ;
300302 }
@@ -314,6 +316,7 @@ export class LargeFileUploadTask<T> {
314316 . headers ( {
315317 "Content-Length" : `${ range . maxValue - range . minValue + 1 } ` ,
316318 "Content-Range" : `bytes ${ range . minValue } -${ range . maxValue } /${ totalSize } ` ,
319+ "Content-Type" : "application/octet-stream" ,
317320 } )
318321 . responseType ( ResponseType . RAW )
319322 . put ( fileSlice ) ;
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import { getValidRangeSize } from "./OneDriveLargeFileUploadTaskUtil";
2222 * @property {string } fileName - Specifies the name of a file to be uploaded (with extension)
2323 * @property {string } [path] - The path to which the file needs to be uploaded
2424 * @property {number } [rangeSize] - Specifies the range chunk size
25+ * @property {string } [conflictBehavior] - Conflict behaviour option
26+ * @property {UploadEventHandlers } [uploadEventHandlers] - UploadEventHandlers attached to an upload task
2527 */
2628export interface OneDriveLargeFileUploadOptions {
2729 fileName : string ;
@@ -35,8 +37,7 @@ export interface OneDriveLargeFileUploadOptions {
3537 * @interface
3638 * Signature to define options when creating an upload task
3739 * @property {string } fileName - Specifies the name of a file to be uploaded (with extension)
38- * @property {string } [path] - The path to which the file needs to be uploaded
39- * @property {number } [rangeSize] - Specifies the range chunk size
40+ * @property {string } [conflictBehavior] - Conflict behaviour option
4041 */
4142interface OneDriveFileUploadSessionPayLoad {
4243 fileName : string ;
You can’t perform that action at this time.
0 commit comments