Upload Blob
upload_blobUpload a file or text blob to an AFFiNE workspace and receive its blob key. Content is provided as base64 or plain text.
Instructions
Upload a file or blob into AFFiNE workspace storage and return its blob key. This creates stored content but does not attach it to a document by itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Base64-encoded file content or plain UTF-8 text to upload. | |
| filename | No | Optional filename stored with the upload. Defaults to a generated .bin name. | |
| contentType | No | Optional MIME type. Defaults to application/octet-stream. | |
| workspaceId | Yes | AFFiNE workspace id that owns the blob. |