improve UploadHelper