ncloud_sens_upload_sms_attachment
Upload a JPG/JPEG image for MMS and get a file ID to attach to SMS messages. Accepts Base64 images up to 300 KB; identical files are reused.
Instructions
Upload a JPG/JPEG image for MMS (POST /sms/v2/services/{serviceId}/files; JSON with Base64 body, not multipart). ≤300 KB, ≤1500x1440, kept 6 days. Returns fileId for ncloud_sens_send_sms files[]. A file with the same name and size is reused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileBody | Yes | Base64-encoded image (a 'data:image/...;base64,' prefix is stripped automatically) | |
| fileName | Yes | File name ending in .jpg/.jpeg (≤40 chars) | |
| serviceId | No | SMS service ID in NRN form (e.g. ncp:sms:kr:1********2:myproject). Defaults to NCLOUD_SENS_SMS_SERVICE_ID / NCLOUD_SENS_SERVICE_ID. Find it with ncloud_sens_list_projects (smsService.serviceId). A 'Forbidden' reply means the project does not have this channel enabled. |