This is a reminder that .gz files (and deflate compressed files in general) can in the best case compress the data 1:1024. If you are accepting 10Mb files from untrusted sources - be ready for them to unpack in up to 10Gb in case you get malicious dataI