FileCreateOptions: {
    contents: ArrayBuffer | TypedArray | string;
    folderId?: number;
    name: string;
}

Type declaration

  • contents: ArrayBuffer | TypedArray | string

    The contents of the File to create. Note that if an ArrayBuffer or TypedArray is used, ownership of its memory will be transferred to another thread, and it will become inaccessible in this thread.

  • OptionalfolderId?: number

    The id of the Folder to create the File in. If left undefined, the File will be created in the root Folder.

  • name: string

    The name of the File to create.