Support upload progress with session.upload_progress and PECL uploadprogress module (#1488702)