mootoday / ghost-v3-google-cloud-storage

A Google Cloud Storage adapter for Ghost v3 (www.ghost.org).
13 stars 7 forks source link

Add an ability to set object prefix for uploaded files #4

Open kirilldronkin opened 4 years ago

kirilldronkin commented 4 years ago

Hi, what do you think about adding a new optional parameter (let's say objectPrefix) that will allow to prefix uploaded files? It will be useful for cases when one bucket is shared between content and other files, for example files of custom frontend like Gatsby.

mikenikles commented 4 years ago

Hi, yes that sounds like a useful option. I will likely need a few days to sit down and write the code. If you want, please feel free to open a PR and I'll use that and release a new version.

drag0s commented 3 years ago

Looks like someone already created a PR for this (https://github.com/mikenikles/ghost-v3-google-cloud-storage/pull/8)