strapi-provider-upload-ftp-v2
v1.1.2
Published
FTP provider for Strapi v4 file upload.
Downloads
36
Readme
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.