A social media site

I have been working on a “social media” website similar to youtube where there are chatrooms and you can post videos. My only question is how I can use one of the nodejs packages called multer to store video files into a variable, I won’t be able to make it so that the server creates a file so instead it will have to save the file in memory so that is why i need to store it in a variable. Also how would I get the file back with an http get request.

if that’s the case, then from the readme, it looks like you’ll have to set it up with MemoryStorage GitHub - expressjs/multer: Node.js middleware for handling `multipart/form-data`. and access the file’s .buffer

what is this situation where you can’t create a file, by the way

Basically since im running it on glitch it won’t be easy to make the file creation system and it’s just easier for me anyway since it won’t have to constantly check for the real files and instead checks what is in the server’s memory.