Closed ghost closed 3 years ago
Same issue. Is anybody know how to fix it?
hey guys, I've got a local server running and I'm not sure I've encountered this issue, did you guys check in node_modules
if the package strapi-provider-upload-oss exists?
@lodisy @loongmxbt also please make sure that you have the correct environment variables setup for the following values, as specified in the sample config.js
ACCESS_KEY_ID=<your access key id>
ACCESS_KEY_SECRET=<your access key secret>
REGION=<bucket region>
BUCKET=<bucket name>
UPLOAD_PATH=<upload path>
TIMEOUT=<timeout>
@lodisy @loongmxbt also please make sure that you have the correct environment variables setup for the following values, as specified in the sample
config.js
ACCESS_KEY_ID=<your access key id> ACCESS_KEY_SECRET=<your access key secret> REGION=<bucket region> BUCKET=<bucket name> UPLOAD_PATH=<upload path> TIMEOUT=<timeout>
It works now. I thought there would be configurations on the admin side. Thanks.
@loongmxbt let me know if the above solution works for you, will close if so
@hezzze I've made a silly mistake, didn't use env correctly. Can close the issue.
Steps:
npm install strapi-provider-upload-oss --save
in the strapi root folderstrapi develop
[2020-07-12T10:32:57.429Z] error Bootstrap function in plugin "upload" failed
[2020-07-12T10:32:57.429Z] error Error: The provider package isn't installed. Please run
npm install strapi-provider-upload-oss``do I need to input configs directly in the plugins.js or there is an admin panel to config?
Strapi package.json :
Many thanks