strapi-community / strapi-provider-upload-google-cloud-storage

Google Cloud Storage Upload Provider for Strapi
MIT License
211 stars 94 forks source link

basePath always overwritten to '/' #168

Closed ianyoung closed 1 year ago

ianyoung commented 1 year ago

Whenever I set the basePath in plugins.js it ignores what I enter and uploads to / instead:

plugins.js

basePath: "/uploads",

Uploads to /:

It looks like it may be this line which is replacing things:

const basePath = `${config.basePath}/`.replace(/^\/+/, '');
ianyoung commented 1 year ago

This turned out to be a an issue elsewhere. I've tested again and the basePath does seem to be working as expected. This issue can be closed.