Added a progress handler for uploading.