Hey there,
for the larger part of the day if been trying to get the strapi-provider-upload-sftp-v2 to work with Strapi v4.
I installed it with npm install and added the settings (and folders) in:
./extensions/upload/config/settings.json
{
"provider": "sftp",
"providerOptions": {
"host": "<host>",
"port": "<port>",
"user": "<sftp-username>",
"password": "<password>",
"basePath": "<base-path>",
"baseUrl": "<base-url>"
}
}
then I changed the ‘providers’ parameter from “sftp” to “strapi-provider-upload-sftp” as noted in the Strapi docs (Upload - Strapi Developer Docs).
I then added the configuration below in ./config/plugins.js
module.exports = ({ env }) => ({
upload: {
provider: 'strapi-provider-upload-sftp-v2',
providerOptions: {
host: "host-string",
port: "22",
user: "user-string",
password: "password-string",
basePath: "/",
baseUrl: ""
}
}
I then moved the module from node_modules into the ./providers folder (I had to create) and changed the dependency in package.json to register it as a local provider (Upload - Strapi Developer Docs).
"dependencies": {
....
"strapi-provider-upload-sftp-v2": "file:providers/strapi-provider-upload-sftp-v2"
}
All to no avail.
What am I missing here?
Any help would be highly appreciated !