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

**URL:** <https://meta.discourse.org/t/adding-a-stable-way-of-adding-whitelisted-orphaned-uploads-in-a-plugin/128354>\
**Category:** Development\
**Created:** [September 12, 2019, 2:15am UTC](https://meta.discourse.org/t/adding-a-stable-way-of-adding-whitelisted-orphaned-uploads-in-a-plugin/128354 "2019-09-12T02:15:12Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [November 28, 2019, 10:24am UTC](https://meta.discourse.org/t/adding-a-stable-way-of-adding-whitelisted-orphaned-uploads-in-a-plugin/128354/10 "2019-11-28T10:24:59Z")

</div>

> [@piratdavid](#):
>
> My question is, where can this string be found? It’s not stored on the Upload from what I can see.

It’s called the [`short url`](https://github.com/discourse/discourse/blob/7fc99f5e7b4fb4b60c778c5458e32853e00e8063/app/models/upload.rb#L114-L116) and you can find how it’s computed in the `Upload` model

> <https://github.com/discourse/discourse/blob/7fc99f5e7b4fb4b60c778c5458e32853e00e8063/app/models/upload.rb#L385-L387>

---

_[View the full topic](https://meta.discourse.org/t/adding-a-stable-way-of-adding-whitelisted-orphaned-uploads-in-a-plugin/128354)._
