# How do I change the URL of a file?

**URL:** <https://meta.discourse.org/t/how-do-i-change-the-url-of-a-file/358758>\
**Category:** Product Support\
**Created:** [March 25, 2025, 12:47pm UTC](https://meta.discourse.org/t/how-do-i-change-the-url-of-a-file/358758 "2025-03-25T12:47:24Z")\
**Posts on this page:** 7\
**Page:** 1

## AI-generated summary

[Toxic](/t/-/358758/1) reported an issue where images deleted in a forum purge could not be re-uploaded correctly, as the system retained the original deleted URLs. [pfaffman](/t/-/358758/3) inquired about the deletion process, noting that file hashes typically allow for replacement by uploading to a new topic. [Toxic](/t/-/358758/4) clarified that the purge was conducted to free up space and that they were struggling to change the file URL to resolve the broken links. After finding a workaround, [Toxic](/t/-/358758/5) was prompted by [Jagster](/t/-/358758/6) to share the solution. [Toxic](/t/-/358758/7) explained that since they still possessed the original file, they took a screenshot of it as a workaround.

<div class="post-metadata">

**Author:** ![Toxic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toxic/32/486012_2.png) [@Toxic](https://meta.discourse.org/u/Toxic)\
**Post date:** [March 25, 2025, 12:47pm UTC](https://meta.discourse.org/t/how-do-i-change-the-url-of-a-file/358758/1 "2025-03-25T12:47:24Z")

</div>

Recently, the forum that I’m part of got an image deletion, and I have the files still. I’m trying to upload them, but it’s not working, because it uploads the same URL, which renders as deleted. So how do I change it?

---

<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:** [March 25, 2025, 11:23pm UTC](https://meta.discourse.org/t/how-do-i-change-the-url-of-a-file/358758/3 "2025-03-25T23:23:30Z")

</div>

How were they deleted? Can you say not about what happened and what you’re trying to do?

Yes files are named a hash of the contents. Usually this makes it possible to replace missing uploads in existing topics by uploading to a new one.

---

<div class="post-metadata">

**Author:** ![Toxic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toxic/32/486012_2.png) [@Toxic](https://meta.discourse.org/u/Toxic)\
**Post date:** [March 26, 2025, 12:10am UTC](https://meta.discourse.org/t/how-do-i-change-the-url-of-a-file/358758/4 "2025-03-26T00:10:34Z")

</div>

They were deleted in an image purge, because the forum had WAY too many old and useless images and they needed to free up space.  
I’m trying to change the URL of my file that I’m trying to upload to the forum, but I can’t, so the image shows up as deleted and cannot be acessed.

---

<div class="post-metadata">

**Author:** ![Toxic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toxic/32/486012_2.png) [@Toxic](https://meta.discourse.org/u/Toxic)\
**Post date:** [March 26, 2025, 1:47pm UTC](https://meta.discourse.org/t/how-do-i-change-the-url-of-a-file/358758/5 "2025-03-26T13:47:56Z")

</div>

Nvm, I found a solution.

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [March 26, 2025, 2:36pm UTC](https://meta.discourse.org/t/how-do-i-change-the-url-of-a-file/358758/6 "2025-03-26T14:36:06Z")

</div>

Do you want to tell what your solution was?

---

<div class="post-metadata">

**Author:** ![Toxic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toxic/32/486012_2.png) [@Toxic](https://meta.discourse.org/u/Toxic)\
**Post date:** [March 26, 2025, 5:57pm UTC](https://meta.discourse.org/t/how-do-i-change-the-url-of-a-file/358758/7 "2025-03-26T17:57:43Z")

</div>

So, I had the file, so I took a screenshot of the file.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [April 25, 2025, 5:57pm UTC](https://meta.discourse.org/t/how-do-i-change-the-url-of-a-file/358758/8 "2025-04-25T17:57:51Z")

</div>

Closed on April 25, 2025, 5:57pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
