File checking on upload/download