Skip to content

Releases: hnrch02/multer-ftp

1.1.0

08 Jan 06:33
Compare
Choose a tag to compare

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
  })
})

1.0.0

20 Dec 03:41
Compare
Choose a tag to compare

Initial release