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

上传重命名 #139

Open
it985 opened this issue Jan 9, 2025 · 3 comments
Open

上传重命名 #139

it985 opened this issue Jan 9, 2025 · 3 comments

Comments

@it985
Copy link

it985 commented Jan 9, 2025

功能需求

尽可能详细描述您的需求

有些时候原文件名过长,如qq图片_xxxxxxxx.jpg,微信图片_yyyyyyy.jpg,目前只有3种方式(默认,仅前缀,仅原名),都分别测试过,依然很长,效果不佳,需要变短

应用场景

web or api...
url过长,不美观

可行方案

您对该功能的实现有哪些想法
可以用uuid,hash,等唯一值

@MarSeventh
Copy link
Owner

用 uuid, hash 文件名都是16字节起步呀,现在的默认命名是15字节

@MarSeventh
Copy link
Owner

我之后会考虑使用短链接的方式生成文件名

@it985
Copy link
Author

it985 commented Jan 9, 2025

用 uuid, hash 文件名都是16字节起步呀,现在的默认命名是15字节

可以截至前8位,数字+字母,8位也有很多
26个字母x2(大小写分开)+数字10个,这种排列,一般用不完

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants