0

I have implemented multiple file uploads using spsave. But whenever i try to upload larger file(5mb+) files are not getting uploaded.

const apiRequest = spsave(coreOptions, creds, fileOptions);
promiseArray.push(apiRequest);
Promise.all(promiseArray)
          .then((data) => {
            res.status(201).json({
              success: true,
              message: uploadSuccess,
            });
          })
          .catch((err) => {
            res.status(500).json({
              success: false,
              message: err.message,
            });
          });

and returning ns_error_connection_refused error.

1
  • I am checking to see how things are going there on this issue. Apr 6 at 6:00

1 Answer 1

0

Answer to it is use of connect-busboy and fs modules and save files in file system rather than buffering it and eventually read the file and upload to sharepoint, later remove file from file system.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.