Title: Attachment metadata: Store the filesize within each &quot;additional size&quot; attachment entry.
Author: WordPress VIP Documentation
Published: March 22, 2022
Last modified: August 5, 2025

---

 1. [Changelog](https://docs.wpvip.com/changelog/)
 2. [VIP MU plugins [Production]](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)
 3. Attachment metadata: Store the filesize within each "additional size" attachment
    entry.

# Attachment metadata: Store the filesize within each "additional size" attachment entry.

---

 22 March 2022

16:55:46 GMT+0000

 [ VIP MU plugins [Production] ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)

 [ Permalink  ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/attachment-metadata-store-the-filesize-within-each-additional-size-attachment-entry/)

Stores the attachment’s `filesize` within each “virtual sizes” in the attachment
metadata. Keeps us in line with how WP core will be handling this same behavior 
in WP 6.0+: [https://core.trac.wordpress.org/ticket/49412](https://core.trac.wordpress.org/ticket/49412)

[https://github.com/Automattic/vip-go-mu-plugins/pull/2991](https://github.com/Automattic/vip-go-mu-plugins/pull/2991)