Added file compression before uploading