stat file before sending it uncompressed