(WIP)
An extension for replicating a Google Drive file to Google Cloud Storage.
The concept allows stakeholders to provide you with Drive file IDs and you can immediately leverage them on the site without manually downloading and reuploading them.
Here's the workflow:
- Upload an image to Google Cloud Storage.
- Ensure the backend microservice has read access to the object in GCS. (More on this below).
- Use the template function or YAML extension provided in this extension.
- Supply options to the extension to generate the right URL.
- Create an
extensions.txt
file within your pod. - Add to the file:
git+git://github.com/grow/grow-ext-google-drive-to-gcs
- Run
grow install
. - Add the following section to
podspec.yaml
:
extensions:
preprocessors:
- extensions.google_drive_to_gcs.GoogleDriveToGCSExtension
preprocessors:
- kind: google_drive_to_gcs
(WIP)
(WIP)
(WIP)
{{google_drive_to_gcs("/bucket/folder/", "https://drive.google.com/open?id=0B2D-9SyFrh1CcHVjOGlsT0Y4UG8").gs_path}}