Sequence diagram illustrating how this module works from a technical perspective

Summary

Provide a File Field Widget to allow directly uploading files from a web browser to the Google Cloud Storage Bucket defined in a Flysystem - Google Cloud Storage configuration.

This module is a fork of S3 File System CORS Upload, modified to integrate with Google Cloud Storage instead of AWS S3.

Installation

  1. composer require drupal/flysystem_gcs_cors
  2. Configure Flysystem GCS Stream Wrapper in settings.php. The GSA will need the roles/storage.admin role on the GCS bucket and roles/iam.serviceAccountTokenCreator on the GSA itself
  3. Go through the Drupal admin UI to /admin/config/media/gcs-cors and save the form with your website URL. This will add a CORS setting to your GCS bucket for the URL you enter
  4. This module will then be automatically used for any file fields with the Flysystem GCS Stream Wrapper
Supporting organizations: 

Project information

Releases