diff --git a/utils/upload.js b/utils/upload.js index 62676ef..5655a99 100644 --- a/utils/upload.js +++ b/utils/upload.js @@ -13,7 +13,7 @@ async function uploadVideo(video) { endpoint: 'https://gateway.storjshare.io' }) - const videoFile = fs.readFileSync(video) + const videoFile = fs.createReadStream(video) await s3.upload({ Bucket: 'video', Key: video.split('/')[2],