flysystem_gcs_cors
17 sites
Security covered
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
composer require drupal/flysystem_gcs_cors- Configure Flysystem GCS Stream Wrapper in
settings.php. The GSA will need theroles/storage.adminrole on the GCS bucket androles/iam.serviceAccountTokenCreatoron the GSA itself - Go through the Drupal admin UI to
/admin/config/media/gcs-corsand save the form with your website URL. This will add a CORS setting to your GCS bucket for the URL you enter - This module will then be automatically used for any file fields with the Flysystem GCS Stream Wrapper