Adding a stable way of adding whitelisted "orphaned" uploads in a plugin

That’s exactly why we need the UploadReference table :+1:

I actually think that’s a very good task to learn more about Discourse internals. Might be a good task for @cvx, starting early October. We’ll do some pair programming to get things started and properly split into several “small” tasks.