FileUpdateOptions: {
    contents?: ArrayBuffer | TypedArray | string;
    name?: string;
}

Type declaration

  • Optionalcontents?: ArrayBuffer | TypedArray | string

    The contents of the File. 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.

  • Optionalname?: string

    Update the name of the File.