upload
Upload a file to MEFS decentralized storage by providing its base64-encoded content and name. Optionally set encryption key and public access. Returns the content identifier (CID).
Instructions
Upload a file to MEFS storage. The file must be provided as a base64 encoded string. Returns the CID (Mid) of the uploaded file.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The content of the file encoded as a base64 string | |
| name | Yes | Name for the uploaded file (must include file extension for MIME type detection) | |
| key | No | Encryption key for the file (optional, defaults to f1d4a0b37124c3a7 if not public) | |
| public | No | Whether the file should be public (default: false) |