Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

jacobthemyth/parse-server-ftp-http-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parse-server-ftp-http-adapter

codecov.io

Build Status

parse-server file adapter for FTP upload and HTTP download

Installation

npm install --save parse-server-ftp-http-adapter

Usage

...
var FtpHttpAdapter = require('parse-server-ftp-http-adapter');

var api = new ParseServer({
  databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
  appId:       process.env.APP_ID || 'APPLICATION_ID',
  masterKey:   process.env.MASTER_KEY || 'MASTER_KEY',
  ...
  filesAdapter: new FtpHttpAdapter({
    ftp: {
      host:     "example.com",         # required
      port:     21,                    # defaults to 21
      username: "user",                # defaults to "anonymous"
      password: "secret",              # defaults to "anonymous@"
      path:     "/example.com/uploads" # defaults to "/"
      ...                              # any other options to send to node-ftp
    },
    http: {
      host: "http://example.com",      # required
      port: 80,                        # defaults to 80
      path: "/uploads"                 # defaults to "/"
    },
    debug: true                        # defaults to false
  }),
  ...
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published