# 公开分类中安全上传文件的 URL 变为 uploads/short-url

**URL:** https://meta.discourse.org/t/secure-upload-file-urls-changing-to-uploads-short-url-in-public-categories/410540
**Category:** Support
**Tags:** secure-uploads
**Created:** [2026年八月20日 15:46 UTC](https://meta.discourse.org/t/secure-upload-file-urls-changing-to-uploads-short-url-in-public-categories/410540 "2026-08-20T15:46:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Shahrear\_Chowdhury](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shahrear_chowdhury/32/574735_2.png) [@Shahrear\_Chowdhury](https://meta.discourse.org/u/Shahrear_Chowdhury)
#### Post date: [2026年八月20日 15:46 UTC](https://meta.discourse.org/t/secure-upload-file-urls-changing-to-uploads-short-url-in-public-categories/410540/1 "2026-08-20T15:46:26Z")

</div>

已启用安全上传，在编辑包含文件的主题时，S3 文件链接会发生变化：

从 `secure-uploads/original/...` 变为 `uploads/short-url/...`

这种情况仅发生在 **公开分类** 中。

这是预期行为、一个 bug，还是我遗漏了某个设置？

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/9/6/496a00bd2c16f7471e6e1cdc4e256b88a70e4b36.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/d/2/9d2762c9bb5077301604ce416e5572fca7f59a07.png)

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2026年八月20日 16:15 UTC](https://meta.discourse.org/t/secure-upload-file-urls-changing-to-uploads-short-url-in-public-categories/410540/2 "2026-08-20T16:15:57Z")

</div>

> [@Shahrear\_Chowdhury](#):
>
> 这是预期行为吗？

是的，本来就是这样设计的。

---

<div class="post-metadata">

### Author: ![Shahrear\_Chowdhury](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shahrear_chowdhury/32/574735_2.png) [@Shahrear\_Chowdhury](https://meta.discourse.org/u/Shahrear_Chowdhury)
#### Post date: [2026年八月20日 16:34 UTC](https://meta.discourse.org/t/secure-upload-file-urls-changing-to-uploads-short-url-in-public-categories/410540/3 "2026-08-20T16:34:08Z")

</div>

谢谢，但为什么私密分类（Private Categories）却不是这种情况呢？
