rename file and gzip when uploading