storage_upload
Upload or replace a Storage object from text or base64 bytes, set its content type and custom metadata, and let finalize triggers run without security-rule checks.
Instructions
Upload (create or replace) a Storage object from text or base64 bytes with a content type and custom metadata, as the Admin SDK would (rules skipped; finalize triggers run).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Object path, e.g. products/shoe.png | |
| text | No | Content as text (sent as UTF-8) | |
| base64 | No | Content as base64 bytes (instead of text) | |
| bucket | No | Storage bucket; default the suite's default bucket | |
| contentType | No | Content type; default text/plain for text, application/octet-stream for base64 | |
| ifNotExists | No | Refuse to replace an existing object | |
| cacheControl | No | Cache-Control | |
| customMetadata | No | String metadata |