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) Base64's last two chars are / and +

And this is the Ruby library they use: https://github.com/steventen/base62-rb