1

The following function for your reference. function UploadFiles() { var files = document.getElementById('exampleInputFile').files; var file = files[0]; //using File Api if (file!=undefined || file!=null){ $pnp.sp.web.getFolderByServerRelativeUrl("/Documents").files.add(file.name, file, true).then(function (data) { var ...


Only top voted, non community-wiki answers of a minimum length are eligible