How to store in a specific folder of Google Cloud Storage?

Aurelien
Google Developer Expert
Google Developer Expert

Dear Community,

I'm trying to store files in a specific bucket storage. 

Basically that works, but I have an issue with the path to the storage.

Here is my setting associated to my table:

Aurelien_0-1666853000500.png

So far, so good.

On the GCS part though, here is what I get:

Aurelien_3-1666854029479.png

But I would like to store the information in the green folder instead:

Aurelien_5-1666854211472.png

 

Is there a way to do so?

Many thanks in advance for your inputs !

Solved Solved
0 9 3,139
2 ACCEPTED SOLUTIONS

@Aurelien The only way I've found to handle this is to use an absolute path as in the following example:  "//[root folder name]/[subfolder name]".  Note the double slash is what creates the absolute path.  In GCS, it will reflect as [root folder name]>[subfolder name]> [photo name].  

The only issue is you currently can't do this globally.  You have to do this individually for each content field you want to send to GCS.  The good news is that this path sticks even through an app copy.  I hope this helps! 

View solution in original post

Aurelien
Google Developer Expert
Google Developer Expert

Hi @gborh1 

Thank you for your contribution, I forgot to update this post.

Indeed this is the solution I found, and it works for a bucket.

So that gave:

Aurelien_0-1678867117539.png

 

View solution in original post

9 REPLIES 9