Plugin not considered
alessandro-candon opened this issue · 6 comments
Describe the bug
The plugin is not considered. I follow the doc step by step without success.
To Reproduce
Steps to reproduce the behavior:
- download strapi version : 3.6.8
- install plugin
- create file
plugins.js
with this configuration
module.exports = {
upload: {
config: {
provider: 'strapi-provider-upload-google-cloud-storage',
providerOptions: {
bucketName: 'mybucketname',
publicFiles: true,
uniform: false,
serviceAccount: {mysecretserviceaccount},
basePath: '',
},
},
}
}
- run
npm run develop
- upload a file from UI
- check on GCP storage -> no file is present -> no error is dieplayed
Expected behavior
The file is uploaded.
An error is displayed.
Desktop (please complete the following information):
- OS: IOS
- Browser Chrome
Any idea? I think the plugin is not considered form strapi...
Hi @alessandro-candon
It seems that your file plugin.js has the configuration of the plugin v4.0.0
I guess you should try this config which is slighly different : https://www.npmjs.com/package/strapi-provider-upload-google-cloud-storage/v/3.6.8
Nevertheless, unfortunately, with the same Strapi config (3.6.8) and the plugin 3.6.8 with the related plugin.js configuration, I've got the same problem as yours : the plugin is not considered and I don't any error to help me...
Nice,
I started using strapi some weeks ago, so I'm not expert, do you think is better to move on version 4? Is it stable right now?
exakt same issue here. tring to move away from local storage to google cloud. As i use strapi as a cloud run docker container.
Hi,
@PiecePaperCode, @alessandro-candon
The configuration for Strapi 3.6.8 is different of Strapi 4.0.0.
If you have installed by mistake the wrong version, you can try this solution below.
Edit your configuration files plugins.js
with the correct plugins configuration for Strapi 3.6.8 :
module.exports = {
upload: {
provider: 'google-cloud-storage',
providerOptions: {
bucketName: 'mybucketname',
publicFiles: true,
uniform: false,
serviceAccount: {mysecretserviceaccount},
basePath: '',
},
}
}
Re-install the plugins with the version 3.6.8 :
npm install strapi-provider-upload-google-cloud-storage@3.6.8
or with yarn :
yarn add strapi-provider-upload-google-cloud-storage@3.6.8
Then, relaunch a strapi build with clean :
strapi build --clean
Then, we can relaunch your strapi instance with :
strapi develop
Hope this will help,
Hi !
Strapi 4.0.0 has a bug with the upload provider, and image are saved in local...
Let me see if this bug has been fixed.
Thanks !
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.