sendFile not working with video files
See original GitHub issueI’m tring to send an mp4 file without success. The api doesn’t return any error, ideas? @danielcardeenas
Error thrown:
Uncaught (in promise) Error: InvalidMediaFileType: ExtendableError
at t.value [as sendToChat]
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
NodeJS res.sendFile not sending images or directorys
Put all your static files inside of a public directory and serve them like this. var express = require("express"); var app = express();...
Read more >sendFile() sets wrong video content type · Issue #2354 - GitHub
For weird reasons sendFile() sets the content type to video/webm when sending an MP4 video. Happens on IE10 and Firefox latest version.
Read more >Express.js - SendFile - YouTube
Learn how to send down an HTML file from an Express route! ... Your browser can't play this video. ... Express.js - SendFile....
Read more >Express.js res.sendFile() Function - GeeksforGeeks
The res.sendFile() function basically transfers the file at the given path and it sets the Content-Type response HTTP header field based on ...
Read more >Using Express res.sendFile() Function to Serve Files
sendFile () method accepts absolute paths only. You can use express. static() to set the path. Video Player is loading.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In order to send videos, you need to use a chrome instance. Chromium does not support that feature
Perfect! I suggest to keep tests so we can quick test things if get broken
——————
Daniel - Software Engineer
Support me at: Github sponsors