Saturday 6 May 2017

How to upload files to specific folder multer-ftp on remote server?

Using this code I try send files on remote server:

var upload = multer({
    storage: new ftpStorage({
        basepath: '/uploads/',

        ftp: {
            host: 'samplehost.com',
            secure: false, // enables FTPS/FTP with TLS
            user: 'login',
            password: 'password'
        }
    })
});

but always save file in root directory, not in uploads, how can I fix this?



via Marcin

No comments:

Post a Comment