From 68ea3430904170f7fc25fd7b5d465c1a5c52025a Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 23 Mar 2024 14:32:36 -0400 Subject: [PATCH] file log --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 776042d..a0b287a 100644 --- a/index.js +++ b/index.js @@ -10,6 +10,8 @@ const videoFileMap={ 'get-post':'videos/v3.mp4', } +console.log("Finding File"); + var corsOptions = { origin: ['http://localhost:3000', 'http://localhost:3040', @@ -36,6 +38,8 @@ app.get('/videos/:filename',cors(corsOptions), (req, res)=>{ return res.status(404).send('File not found') } + console.log("Finding File Found ", filePath); + const stat = fs.statSync(filePath); const fileSize = stat.size; const range = req.headers.range;