Add upload-mode option