@galadrim/galadmin 0.1.225 → 0.1.227

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -240,6 +240,31 @@ upload of a file onto AWS S3. A basic configuration would be as follow:
240
240
  }]
241
241
  ```
242
242
 
243
+ ### File upload on Google Cloud Platform (GCP)
244
+
245
+ You can also use the FileColumn to upload files to Google Cloud Storage. To use GCP instead of AWS S3, configure the gcpConfig as follows:
246
+
247
+ ```js
248
+ ...
249
+ columns: [{
250
+ label: 'Image',
251
+ name: 'imageUrl',
252
+ dataType: 'file',
253
+ gcpConfig: {
254
+ host: process.env.GCP_STORAGE_HOST,
255
+ bucket: process.env.GCP_BUCKET_NAME,
256
+ },
257
+ }]
258
+ ```
259
+
260
+ You also need to set up the service account credentials in your `.env` file:
261
+
262
+ ```bash
263
+ GOOGLE_APPLICATION_CREDENTIALS=service-account-file.json
264
+ ```
265
+
266
+ Make sure the service account JSON file is in your project directory and has the necessary permissions to write to your Google Cloud Storage bucket.
267
+
243
268
  ### File upload on a remote server (via SFTP)
244
269
 
245
270
  It is possible to use a FileColumn to allow upload to a remote server via SFTP. A basic configuration would be as follow: