javascript – What modules to implement uploading and downloading images in Node.js?


The user uploads the avatar via node.js to the remote file system next to the database, after which each session uploads it back. Which node.js modules can be used to transfer one-time jpg files?


One can use node-wget :

var wget = require('node-wget')

var url = ""
var dest = "./picture.png"

wget({ url, dest }, (error, response, body) => {
  if (error) throw error
Scroll to Top