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

提一个小bug #18

Open
dhcn opened this issue Nov 17, 2013 · 0 comments
Open

提一个小bug #18

dhcn opened this issue Nov 17, 2013 · 0 comments

Comments

@dhcn
Copy link

dhcn commented Nov 17, 2013

上传过程中到得文件名后缀的哪句Spilt会有问题。
point_pos = file.name.rfind(".")#解决文件名出现多次.的情况
original_ext =file.name[point_pos+1:].lower()#解决配置和实际文件名大小写不匹配也会报错的bug。
这个统一大小写的ext最好也做进存储文件名里面,否则有可能导致存进去的文件因为大小的问题被imagemanager读取目录的时候所过滤
作者别在意,报bug主要还是为了共同打造一个生产系统可用的东西。

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

1 participant