# Decoding "upload://" identifier to url

**URL:** https://meta.discourse.org/t/decoding-upload-identifier-to-url/200117
**Category:** Support
**Created:** [August 11, 2021, 9:38pm UTC](https://meta.discourse.org/t/decoding-upload-identifier-to-url/200117 "2021-08-11T21:38:43Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [August 11, 2021, 9:40pm UTC](https://meta.discourse.org/t/decoding-upload-identifier-to-url/200117/3 "2021-08-11T21:40:25Z")

</div>

Hard to find indeed, but here you go.

> [@Converting short upload URLs to full URLs](https://meta.discourse.org/t/converting-short-upload-urls-to-full-urls/131760/2):
>
> 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/decoding-upload-identifier-to-url/200117)._
