[wp-trac] [WordPress Trac] #63294: Got this error when send image via REST API on WP 6.8
WordPress Trac
noreply at wordpress.org
Wed Apr 16 13:24:16 UTC 2025
#63294: Got this error when send image via REST API on WP 6.8
--------------------------+------------------------------
Reporter: Astraport | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 6.8
Severity: critical | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by Astraport):
Replying to [comment:1 mukesh27]:
> Hi there!
>
> Could you please share image details and rest API call if possible?
Hi
Any image, it doesn't matter. But if I rename the image extension to JPEG
instead of JPG and change "Content-Type: image/jpeg" in the request
instead of "Content-Type: image/jpg", then everything works and image
uploads successfully.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63294#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list