SFTP storage engine for Multer (v1.1.1), enabling file uploads to an SFTP server via express/multer middleware. Requires peer dependency ssh2-sftp-client >=1.0.0. Ships TypeScript types. Compared to other multer storage engines (like multer-s3), it targets SFTP/SSH environments. Low maintenance cadence (last release ~2019).
npm install multer-sftpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure multer with SFTP storage engine using environment variables for credentials.
Ensure sftp object is provided with at least host/username/password.
Always provide destination (string or function).
Provide filename function that appends extension, e.g., cb(null, file.originalname).
Refer to ssh2 documentation for connection options.
Provide sftp object with host, username, password.
Ensure destination directory exists or use callback to create it before finalizing upload.
Use filename option in sftpStorage configuration, not in multer() call.