phabricator_file_upload
Upload a file to Phabricator by providing base64-encoded content. Returns a file PHID for embedding in Remarkup via {F}.
Instructions
Upload a file to Phabricator. Returns a file PHID that can be used with phabricator_file_info to get the file ID for embedding in Remarkup via {F}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Filename with extension (e.g. "screenshot.png") | |
| data_base64 | Yes | Base64-encoded file content | |
| viewPolicy | No | File visibility policy (e.g., "public", "users", or a custom policy PHID) | |
| canCDN | No | Whether the file can be served over CDN (for public assets) |