How do we store user-uploaded photos in a social media app in express.js?
I always thought we should use the
public
public
folder to serve any kind of files but this isn't true? (just realised that the public means publicly available xD)
For instance, say we have a social media blog where we can create a post and upload photos. The photos need to be stored somewhere on the server, right? Where do we store that? I used to store that in the public folder in some of my projects but this isn't good?