Attachment compression

I can see that images that are uploaded into posts are compressed and backups have a compression option. However I don’t see any option to compress attachments to posts. Is this possible or is possible to put this into a feature request (this will save disk space immensely when text logs/files are attached to posts which can grow significantly over time).

Search for composer media optimization in your admin.


1 Like

Thanks. That appears to be related to media files (images as I understand). This was a recent addition I remember tracking the client side optimization.

I was referring to attachments like zip files, text files, log files etc (non image).

A zip file is already compressed, and I honestly doubt that text and log files are so large that compressing them will save significant amounts of space?


On the forum I’m managing yes, the text files are a few GB in size because it’s a support forum, so community members upload log files and each one is 10’s of MB. They add up quickly.

Wondering if there’s an option to automatically drop attachments ie an expiration date. So if the text attachments can’t be compressed maybe they can be automatically dropped after X days?

Do you need to keep those support topics? If you set a topic timer, they can be deleted automatically, and with them the attachments based on the purge deleted uploads grace period days setting.


Yea definitely because it’s a knowledge base for the community on how solve problems or where to look. However once solved the log attachments are not required.