[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 15:19:07 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:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by oglekler):

 * keywords:  needs-patch => reporter-feedback


Comment:

 Hi @Astraport if your images have MIME types that are not aligned with the
 image format or are outside the limits, they will not be accepted. This is
 normal behaviour and should be expected, you don't want some virus
 pretended to be an image and such things are happening.

 To see what types are allowed, you can check wp_get_mime_types() function.

 Please clarify what MIME types and formats you have and where they come
 from to move forward — how it has happened in the first place, usually
 people don't have such issues at all. Possibly you need to check with the
 image source.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63294#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list