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. Commented Apr 6, 2023 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 you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.