You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
hello, I am facing a problem with skipper-better-s3, when I upload a file over 5 MB, it crash sailsjs server and give me an error like:
t IncomingMessage.onReqAborted (/home/duan/projects/ds_back_end/node_modules/multiparty/index.js:183:17)
at emitNone (events.js:106:13)
at IncomingMessage.emit (events.js:208:7)
at abortIncoming (_http_server.js:412:9)
at socketOnClose (_http_server.js:406:3)
at emitOne (events.js:121:20)
at Socket.emit (events.js:211:7)
at TCP._handle.close [as _onclose] (net.js:554:12)
hello, I am facing a problem with skipper-better-s3, when I upload a file over 5 MB, it crash sailsjs server and give me an error like:
t IncomingMessage.onReqAborted (/home/duan/projects/ds_back_end/node_modules/multiparty/index.js:183:17)
at emitNone (events.js:106:13)
at IncomingMessage.emit (events.js:208:7)
at abortIncoming (_http_server.js:412:9)
at socketOnClose (_http_server.js:406:3)
at emitOne (events.js:121:20)
at Socket.emit (events.js:211:7)
at TCP._handle.close [as _onclose] (net.js:554:12)
I have my upload code as following:
`upload: (req, res) => {
const {fileName, previewName, coverName} = req.body;
and disAWS.uploadConfig is a function to generate skipper s3 config:
module.exports.uploadConfig = (fileName, key) => {
return {
adapter,
key: accessKeyId,
region,
maxBytes: Number.MAX_VALUE,
secret: secretAccessKey,
bucket: configPath.bucket,
dirname: folderMap[key],
saveAs: (__newFileStream, next) => {
return next(undefined, fileName);
},
onProgress: progress => console.log('Upload progress:', progress)
};
};
any help is appreciated, thanks in advance
The text was updated successfully, but these errors were encountered: