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).
AI-generated summary
Attachment Compression Discussion Summary
RBoy initiated the discussion on attachment compression, seeking to reduce disk space usage by compressing non-image attachments like text files, zip files, and log files. omarfilip suggested searching for composer media optimization, but RBoy clarified this option applies only to media files, not non-image attachments.
RBoy shared that on the forum they manage, text files can reach sizes of a few GB, making compression or an expiration date for attachments desirable. RGJ questioned the need for compression, but RBoy explained the large size of the files.
omarfilip suggested using a topic timer to automatically delete topics and attachments after a set period, as specified in the purge deleted uploads grace period setting. RBoy considered this option, as the log attachments are no longer needed once the problem is solved, but the topics themselves serve as a knowledge base for the community.
Search for composer media optimization in your admin.
/admin/site_settings/category/files?filter=composer%20media%20optimization
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.