Added back get_upload_id().

Adding back some code that got removed in a previous check-in.