[wp-trac] [WordPress Trac] #52840: Include filesize information in REST API response for all media types
WordPress Trac
noreply at wordpress.org
Fri Apr 29 10:18:15 UTC 2022
#52840: Include filesize information in REST API response for all media types
----------------------------------------+-----------------------------
Reporter: tfrommen | Owner: rachelbaker
Type: enhancement | Status: accepted
Priority: normal | Milestone: Future Release
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: rest-api
----------------------------------------+-----------------------------
Comment (by spacedmonkey):
It is worth noting that #49412 merged. For all new attachments uploaded
after WP 6.0, filesize will be stored ( cached ) in as part of metadata.
To get this file size for all attachments, post thumbnails can be
regenerated, say wp cli, like this wp media regenerate.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52840#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list