# 上传具有较长文件扩展名的文件时被截断

**URL:** <https://meta.discourse.org/t/uploading-files-with-longer-file-extensions-gets-truncated/182824>\
**Category:** Bug\
**Created:** [2021 年3 月 10 日 22:23 UTC](https://meta.discourse.org/t/uploading-files-with-longer-file-extensions-gets-truncated/182824 "2021-03-10T22:23:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Natanael\_Ceder](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natanael_ceder/32/212757_2.png) [@Natanael\_Ceder](https://meta.discourse.org/u/Natanael_Ceder)\
发布日期： [2021 年3 月 10 日 22:23 UTC](https://meta.discourse.org/t/uploading-files-with-longer-file-extensions-gets-truncated/182824/1 "2021-03-10T22:23:13Z")

</div>

你好！  
在尝试上传具有“长”文件扩展名的文件时，上传的文件名似乎被“截断”了。

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/e/6e5f189e00fe73d58cecce006a774a0f0f21d26c.png)  
我要上传的文件具有“.MaxxECU-Zip-log”文件扩展名。

但链接指向了“/uploads/short-url/3xMz4QHB9JcqXACwwn1S5ZgMi2t.MaxxECU-Zi”，这显然是错误的，我们会收到“哎呀！该页面不存在或为私有”的提示。

有人以前遇到过这种情况吗？有什么建议可以解决这个问题吗？

提前感谢。

---

_[View the full topic](https://meta.discourse.org/t/uploading-files-with-longer-file-extensions-gets-truncated/182824)._
