diff --git a/dist/index.js b/dist/index.js index 265c0a2..eaa1371 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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", () => {