# Converting short upload URLs to full URLs

**URL:** https://meta.discourse.org/t/converting-short-upload-urls-to-full-urls/131760
**Category:** Development
**Created:** [23 oktober 2019 om 22:03 UTC](https://meta.discourse.org/t/converting-short-upload-urls-to-full-urls/131760 "2019-10-23T22:03:12Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [23 oktober 2019 om 22:11 UTC](https://meta.discourse.org/t/converting-short-upload-urls-to-full-urls/131760/2 "2019-10-23T22:11:49Z")

</div>

First base62 decode using the inverted character set, then hex encode the result.

In Python code it looks like this:

`rebase = hex(base62.decode(base, base62.CHARSET_INVERTED))[2:].zfill(40)`

---

_[View the full topic](https://meta.discourse.org/t/converting-short-upload-urls-to-full-urls/131760)._
