Upload Multiple File Attachment Into SharePoint List Using PNP JS

In this article, I have explained how to upload multiple files as an attachment into a SharePoint list using PNP JS. Add the two script references- jQuery and Pnp Js from the CDN, <script src=”https://code.jquery.com/jquery-3.3.1.min.js” type=”text/javascript”></script> <script src=”https://cdnjs.cloudflare.com/ajax/libs/sp-pnp-js/3.0.10/pnp.min.js”type=”text/javascript”></script> Create one array variable globally to store the multiple file content as Blob- (Binary Large Object Data). var fileInfos = [] Create Jquery onchage event to convert the upload files into blob using “blob()” function. //Pass the File Upload control id    $(document).ready(function() {       $(‘#exampleFormControlFile1’).on(‘change’, function() {       blob();    }); }); Create Function blob() to convert the…

Read More