Js Snclient

Under construction

/**
* upload.file will check if the file is bigger than the chunkSize
* property in the repository object and if it is bigger it will upload in chunks.
* file property should come from a file input
*/
const result = await repository.upload.file({
parentPath: "/Root/Content/IT/Document_Library",
file,
fileName: "sampledata.xlsx",
binaryPropertyName: "Binary",
overwrite: false,
});