@bagder applying max fiklesize to the decompressed file makes sense. intuitively. however not all compression formats allow you to determine the decompressed size in advance. so you might have to download and decompress in parallel and stop when the filesize is reached