[openstreetmap/openstreetmap-website] Compress plain GPX uploads with gzip (PR #7124)
Ruben L. Mendoza
notifications at github.com
Tue Jun 30 00:39:54 UTC 2026
Rub21 left a comment (openstreetmap/openstreetmap-website#7124)
@tomhughes, You're right, copying the whole upload was too much. It also had a real problem. It forced a single-part PUT for every upload, so large .zip or .tar traces skipped multipart. I reworked it, the GpxS3Service no longer overrides the public upload.
It now overrides only `upload_with_single_part` and `upload_with_multipart`, and just adds `Content-Encoding: gzip` in the PUT. The upload routing and checksum stay in the parent S3 service, so multipart keeps working for large files and there's much less copied code.
I also added the missing example in example.storage.yml and a note in settings.yml.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7124#issuecomment-4838827194
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7124/c4838827194 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260629/0a8ea442/attachment.htm>
More information about the rails-dev
mailing list