Describe the problem/error/question
I want to upload a binary image to the Ghost Admin API described here (with a curl example):
Ghost Admin API Documentation but that fails.
Data is actually there:
The image is valid too:
What is the error message (if any)?
Actually I get this error:
ERROR: Your request is invalid or could not be processed by the service
415 - “{"errors":[{"message":"Please select a valid image.","context":null,"type":"UnsupportedMediaTypeError","details":null,"property":null,"help":null,"code":null,"id":"382764a0-827e-11ee-892a-db6acb4b0f68","ghostErrorCode":null}]}” - {“errors”:[{“message”:“Please select a valid image.”,“context”:null,“type”:“UnsupportedMediaTypeError”,“details”:null,“property”:null,“help”:null,“code”:null,“id”:“382764a0-827e-11ee-892a-db6acb4b0f68”,“ghostErrorCode”:null}]}
Please share your workflow
How do I fix this? IMHO this should work, as Ghost expects a Blob or File:
Uploading an Image
To upload an image, send a multipart formdata request by providing the'Content-Type': 'multipart/form-data;'
header, along with the following fields encoded as FormData:
file
: Blob or File The image data that you want to upload.
Information on your n8n setup
- n8n version: Version 1.15.2
- Database (default: SQLite): MySQL
- n8n EXECUTIONS_PROCESS setting (default: own, main): not changed
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Unraid