[wp-trac] [WordPress Trac] #52840: Include filesize information in REST API response for all media types
WordPress Trac
noreply at wordpress.org
Thu Oct 14 16:55:07 UTC 2021
#52840: Include filesize information in REST API response for all media types
----------------------------------------+--------------------------
Reporter: tfrommen | Owner: rachelbaker
Type: enhancement | Status: accepted
Priority: normal | Milestone: 5.9
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: rest-api
----------------------------------------+--------------------------
Comment (by spacedmonkey):
This ticket was discussed in this week's REST API meeting.
In short, making filesize calls in the rest api, will likely come with
some overhead. For example those storing files on NFS or S3, will like
need to ping an external resource to get file information, slowing down
the response.
Until file sizes are "cached" somehow ( see #49412 ), this ticket should
be marked as blocked.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52840#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list