Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- res.setHeader('Content-Disposition', 'attachment;filename="' + fileName + '"');
- res.setHeader('Content-Type', 'image/jpg' );
- res.download(filepath);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement