Test
This commit is contained in:
parent
ffacc918ae
commit
d6762d51c1
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -14,7 +14,7 @@ app.post("/uploadVideo", async (req, res) => {
|
||||
req.busboy.on("file", (fieldname, uploadingFile, fileInfo) => {
|
||||
console.log(`Saving ${fileInfo.filename} as ${videoId}`);
|
||||
const videoExt = fileInfo.filename.split(".").at(-1);
|
||||
var targetPath = path.join("./temp/", `${videoId}.${videoExt}`);
|
||||
var targetPath = path.join("/opt/prod/storage/uploadsPart1", `${videoId}.${videoExt}`);
|
||||
const fileStream = fs.createWriteStream(targetPath);
|
||||
uploadingFile.pipe(fileStream);
|
||||
fileStream.on("close", () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user