3.0.0-beta.16.8.1 • Published 5 years ago

strapi-provider-upload-ftp-hash v3.0.0-beta.16.8.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

strapi-provider-upload-ftp-hash

Uses promise-ftp client module, which is just a Promise wrapper around the original ftp client module.

This solution makes use of the file HASH that strapi generates for the files, so files will be uploaded somewhere in the FTP having names such as 486083b1e1dc405ea5a487f120bc09ca.png where 486083b1e1dc405ea5a487f120bc09ca is the generated HASH from strapi.

Configuration parameters:

ParamDescription
HostThe FTP host
PortThe FTP port
UserThe login user
PasswordThe password for the user
Base PATHThe base path inside FTP where the files will be uploaded
Base URLThe base url from which the direct link to the image will be constructed

Example: Having such a configuration

{
  baseUrl: 'https://example.com/images/'
}

the resulting url usable from strapi would be something like: https://example.com/images/486083b1e1dc405ea5a487f120bc09ca.png

NPM

This is available on NPM: | Description | Information | | --------- | ------------------------------------------------------------------------ | | NPM url| https://www.npmjs.com/package/strapi-provider-upload-ftp-hash | | NPM install | npm i strapi-provider-upload-ftp-hash |

Resources

Links