Informations
What is the current behavior?
The AWS S3 upload provider is not showing up in the Upload plugin's Provider settings.
Steps to reproduce the problem
I have run npm install strapi-provider-upload-aws-s3@alpha --save to install the provider inside the plugins/upload/ folder.
What is the expected behavior?
To be able to select the AWS S3 provider.
Suggested solutions
I realized that the method loadProviders in plugins/upload/config/functions/bootstrap.js is responsibe for loading the providers. Since the AWS S3 provider's foldername starts with strapi-provider-..., I changed the
const uploads = _.filter(node_modules, (node_module) => {
return _.startsWith(node_module, ('strapi-upload'));
});
to
const uploads = _.filter(node_modules, (node_module) => {
return _.startsWith(node_module, ('strapi-provider'));
});
and it works like a charm for me. My suggestion is to check for both strings strapi-upload and strapi-provider when loading providers.
Hello @dajer93 !
I think you migrate from older version of Strapi to alpha.16
You not migrate your plugin upload.
Most helpful comment
Hello @dajer93 !
I think you migrate from older version of Strapi to alpha.16
You not migrate your plugin upload.