strapi-provider-upload-ftp-v2

1.1.2 • Public • Published

strapi-provider-upload-ftp-v2

FTP provider for Strapi v4 file upload.

Installation

yarn add strapi-provider-upload-ftp-v2

Config

./config/plugins.js

module.exports = ({ env }) => ({
  upload: {
    config: {
      provider: "strapi-provider-upload-ftp-v2",
      providerOptions: {
        host: env("FTP_HOST"),
        port: env("FTP_PORT"),
        user: env("FTP_USER"),
        password: env("FTP_PASSWORD"),
        basePath: env("FTP_BASEPATH"),
        baseUrl: env("FTP_BASEURL"),
      },
    },
  },
});

For older strapi versions you'll need to tweak the ./config/plugins.js file, but it has been tested down to version 3.6

Currently the Strapi middleware in charge of parsing requests needs to be configured to support file sizes larger than the default of 200MB in addition to provider options passed to the upload plugin for sizeLimit. Read more here.

Resources

Links

Package Sidebar

Install

npm i strapi-provider-upload-ftp-v2

Weekly Downloads

6

Version

1.1.2

License

MIT

Unpacked Size

5.66 kB

Total Files

5

Last publish

Collaborators

  • fabimc