New answers tagged

1

If you are trying to upload a file to SharePoint library & update it's item properties, use below code: import { sp } from "@pnp/sp"; sp.web.getFolderByServerRelativeUrl(newurl).files.add(file.name, file, true).then(f => { f.file.getItem().then(item => { item.update({ Title: "A Title", ...


Top 50 recent answers are included