0

I have a directory "output" in my express project which contains some pngs and I want that every user can download the content of the "output" directory into their local machine can anybody tell me how I do this using nodejs?

Comments
  • 6
    You should try asking your favored search engine. dR is not a search engine, fas as I know at least.
  • 1
    There's this package called fs, and then there's this thing called streaming over http(s), and when both are applied correctly, it's like, well, a wild night on the shrooms 😵‍💫
  • 0
    Be more specific 😑 Do you want them to download the entire directory at once or you want to serve static files to them, so webpage could include these?

    If it's that, then you didn't search at all...
  • 0
    With the download attribute of the anchor tag.
    https://developer.mozilla.org/en-US...
  • 0
Add Comment