Wednesday, 4 April 2018

expressjs: Is there a way to rename a static file on download through browser?

let's say we have a static file served by expressjs on http://localhost:3000/static/images/kitten.jpg. How could we rename this file to elephant.jpg on download (instead of kitten.jpg)?On a side note, queried internet but could not find a working answer. Any help/pointer would be appreciated!

Submitted April 04, 2018 at 09:11PM by naveenkarippai

No comments:

Post a Comment