mirror of https://github.com/preservetube/auto.git
createReadStream
This commit is contained in:
parent
f7fcf871ec
commit
84d53983df
|
@ -13,7 +13,7 @@ async function uploadVideo(video) {
|
||||||
endpoint: 'https://gateway.storjshare.io'
|
endpoint: 'https://gateway.storjshare.io'
|
||||||
})
|
})
|
||||||
|
|
||||||
const videoFile = fs.readFileSync(video)
|
const videoFile = fs.createReadStream(video)
|
||||||
await s3.upload({
|
await s3.upload({
|
||||||
Bucket: 'video',
|
Bucket: 'video',
|
||||||
Key: video.split('/')[2],
|
Key: video.split('/')[2],
|
||||||
|
|
Loading…
Reference in New Issue