Moving Discourse to subdirectory caused all uploads to break

So I did a fresh install and restored from a backup. Everything is working perfectly now.