Upload a file to Mudbase storage
mudbase_upload_fileUpload a file to a Mudbase storage bucket with base64-encoded content, project ID, bucket ID, and filename. Supports optional MIME type and public visibility for stored files.
Instructions
Upload a file to a Mudbase storage bucket. Provide the file content as a base64-encoded string. Best for small to moderate files (text, small images, JSON, documents) passed inline; not intended for very large binaries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucketId | Yes | The storage bucket ID within the project. | |
| filename | Yes | The file name to store, including its extension. | |
| isPublic | No | Whether the uploaded file should be publicly readable. Defaults to the bucket's setting. | |
| mimeType | No | The file's MIME type, e.g. 'image/png' or 'application/pdf'. | |
| projectId | Yes | The Mudbase project ID. | |
| contentBase64 | Yes | The file's raw bytes, base64-encoded. |