How to Display Attachment File Size in WooCommerce
The WooCommerce Product Attachment Pro plugin lets you show the file size of attachments on the frontend. This helps customers understand how large a file is before downloading it, which improves transparency and user experience.
You can easily enable or disable this option using a simple Yes / No setting.
In The Article
Why Show Attachment Size?
Displaying the attachment size helps to:
- Set clear expectations before downloading
- Improve trust and transparency
- Help users with limited bandwidth
- Reduce unnecessary download attempts
Steps to Display Attachment Size
Enable Attachment Size Display
Go to Product Attachment → Settings
Locate the option Show Attachment Size
Select Yes to display the file size
- Select No to hide the file size
- Click Save Changes
Once enabled, the attachment size will appear next to the attachment name on the frontend.
Frontend Display
- When enabled, customers will see the file size (for example: PDF – 2.4 MB)
- When disabled, only the attachment name or link will be shown
- This applies to both file uploads and downloadable attachments
Ready to See All Features in Actions?
Access our complete advanced features instance, allowing you to configure every feature with real product size chart scenarios.
Important Notes
- File size is displayed only for uploaded files
- External URLs do not show file size
- The setting applies globally to all attachments
- Styling follows your theme but can be customized using CSS
Conclusion
Showing attachment file size is a small but useful feature that improves clarity for customers. With a simple Yes or No option, you can decide whether to display file size across your WooCommerce store and create a better download experience.
FAQs
1. What does the “Show Attachment Size” option do?
This option allows you to display the file size (for example, KB or MB) next to an attachment on the frontend.
2. Can I hide the attachment size after enabling it?
Yes. You can simply switch the Show Attachment Size setting to No to hide file sizes.
3. Does attachment size display work for external URLs?
No. File size is shown only for uploaded files. External URLs do not have a detectable file size.
4. Will this setting apply to all attachments?
Yes. This is a global setting and applies to all attachments created using the plugin.
5. Does showing attachment size affect performance?
No. Displaying the file size does not impact site performance or page load speed.
6. Can I style how the attachment size appears?
Yes. You can customize the appearance using Custom CSS if needed.
7. Is attachment size visible on both product and order pages?
Yes, the file size is displayed wherever the attachment itself is visible.