OptionalcontentLength?: numberFile name, including extension. An existing file with the same name is overwritten.
Target folder path relative to serverRelativeUrl, starting with the
library name (e.g. 'Shared Documents/Reports').
File contents. A Readable (e.g. fs.createReadStream(path)) is piped
to SharePoint without buffering it in memory. A stream can only be sent
once, so a 403 for a stale managed digest is not retried for streams;
supply contentLength when you know it, otherwise the upload is chunked.
Byte length of a
Readablepayload, if known. Ignored forBuffer.