Base62 for URL Friendly Fragments
Discourse uses base62 for url friendly fragments for file upload urls and the reason is made clear by this comment:
(note that we’ll need to use base62 3, to avoid the / and + chars in URLs though)
And this is the Ruby library they use: https://github.com/steventen/base62-rb