Cloudflare Images API Upload
I'm attempting to upload an image to my cloudflare Images account using the simple API Upload method.
I'm sending them a file resource that is selected on the computer. I've modified the content-type to be a multipart/form-data request.
Â
I'm sending the file through the stack and I receive an error from cloudflare.
ERROR 9422: Decode error: image failed to be decoded: Uploaded image must have image/jpeg or image/png content type.
Am I missing a header here or am I sending the file through to this API incorrectly?
[Screen Shot 2022-04-06 at 4.21.56 PM.png][Screen Shot 2022-04-06 at 3.53.25 PM.png]
Working with APIs
6 replies