refactor upload without compression