Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上传文件后文件名偶尔需要重命名 #48

Open
metaimagine opened this issue Jun 8, 2020 · 1 comment
Open

上传文件后文件名偶尔需要重命名 #48

metaimagine opened this issue Jun 8, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@metaimagine
Copy link

例如我上传一个文件名字叫 我爱中国.docx,但是网页上显示我上传的文件名字是.docx.docx,并且f12查看了下a标签链接的文件路径地址,又是没有问题的(时间戳前缀+文件名字+文件后缀),希望修复一下

@metaimagine
Copy link
Author

与remove后缀使用的方法有关系,使用的basename来移除文件名后缀,basename又跟localstate设定有关系,如果使用docker容器来启动默认的美国地区,会造成中文前缀丢失的情况。更改FileService中remove后缀名的方法即可。

@a54552239 a54552239 added the bug Something isn't working label May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants