Attach onprogress handler to request.upload

This allows the progress bars to behave correctly.