Releases: hnrch02/multer-ftp
Releases · hnrch02/multer-ftp
1.1.0
Added connection
option to pass an existing instance of ftp
instead of creating a new one.
Example:
var multer = require('multer')
var FTPStorage = require('multer-ftp')
var FTP = require('ftp')
var ftp = new FTP()
ftp.connect({
host: 'example.com',
user: 'user',
password: 'password'
})
var upload = multer({
storage: new FTPStorage({
basepath: '/remote/path',
connection: ftp
})
})