# How are the short-urls for data extraction generated?

**URL:** <https://meta.discourse.org/t/how-are-the-short-urls-for-data-extraction-generated/241713>\
**Category:** Development\
**Created:** [October 12, 2022, 4:45pm UTC](https://meta.discourse.org/t/how-are-the-short-urls-for-data-extraction-generated/241713 "2022-10-12T16:45:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [October 12, 2022, 6:45pm UTC](https://meta.discourse.org/t/how-are-the-short-urls-for-data-extraction-generated/241713/2 "2022-10-12T18:45:07Z")

</div>

What are you trying to do? Why do you care?

I think that this is your answer:

> <https://github.com/discourse/discourse/blob/main/app/models/upload.rb#L427-L429>

If you’re looking for the filename of uploads, it’s a hash of the content. It’s how to see that files are uploaded only once.

But knowing what you’re trying to accomplish would help get you an answer to whatever your question really is.

---

_[View the full topic](https://meta.discourse.org/t/how-are-the-short-urls-for-data-extraction-generated/241713)._
