Fix timeout problem when uploading.