You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daprdocs/content/en/reference/components-reference/supported-bindings/gcpbucket.md
+35-5Lines changed: 35 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,8 @@ spec:
47
47
value: "<bool>"
48
48
- name: encodeBase64
49
49
value: "<bool>"
50
+
- name: contentType
51
+
value: "<string>"
50
52
```
51
53
52
54
{{% alert title="Warning" color="warning" %}}
@@ -70,6 +72,7 @@ The above example uses secrets as plain strings. It is recommended to use a secr
70
72
| `client_x509_cert_url` | N | Output | If using explicit credentials, this field should contain the `client_x509_cert_url` field from the service account json | `https://www.googleapis.com/robot/v1/metadata/x509/<PROJECT_NAME>.iam.gserviceaccount.com`|
71
73
| `decodeBase64` | N | Output | Configuration to decode base64 file content before saving to bucket storage. (In case of saving a file with binary content). `true` is the only allowed positive value. Other positive variations like `"True", "1"` are not acceptable. Defaults to `false` | `true`, `false` |
72
74
| `encodeBase64` | N | Output | Configuration to encode base64 file content before return the content. (In case of opening a file with binary content). `true` is the only allowed positive value. Other positive variations like `"True", "1"` are not acceptable. Defaults to `false` | `true`, `false` |
75
+
| `contentType` | N | Output | The MIME type to set for objects created in the bucket. If not specified, GCP attempts to auto-detect the content type. | `"text/csv"`, `"application/json"`, `"image/png"` |
73
76
74
77
## GCP Credentials
75
78
@@ -105,6 +108,7 @@ To perform a create operation, invoke the GCP Storage Bucket binding with a `POS
105
108
The metadata parameters are:
106
109
- `key`- (optional) the name of the object
107
110
- `decodeBase64`- (optional) configuration to decode base64 file content before saving to storage
111
+
- `contentType`- (optional) the MIME type of the object being created
0 commit comments