microcms_upload_media
Upload media files to microCMS via JS SDK. Supports direct uploads with base64 data, filename, and mimeType, or imports from an external URL. Returns the microCMS asset link for integration. Requires media upload permissions.
Instructions
Upload media files to microCMS using JS SDK (Management API). Supports two methods: 1) Upload file data (base64) with filename and mimeType, 2) Upload from external URL. Returns microCMS asset URL. Requires media upload permissions. Available on Team, Business, Advanced, and Enterprise plans.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
externalUrl | No | External URL of the file to upload (alternative to fileData) | |
fileData | No | Base64 encoded file data (for direct file upload) | |
fileName | No | File name with extension (e.g., "image.jpg", "document.pdf") - required when using fileData | |
mimeType | No | MIME type of the file (e.g., "image/jpeg", "application/pdf") - required when using fileData |