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

从七牛云存储下载回资源的文件名总会带引号 #27

Open
cshlxm opened this issue Mar 4, 2017 · 1 comment
Open

从七牛云存储下载回资源的文件名总会带引号 #27

cshlxm opened this issue Mar 4, 2017 · 1 comment

Comments

@cshlxm
Copy link

cshlxm commented Mar 4, 2017

使用该库从七牛云存储上下载资源的话,文件名无法正常保存,总会保存成: "filename.sub" (包含了两边的引号),下载中的临时文件就是; "finame.sub".temp
测试地址:http://od6crdcrj.bkt.clouddn.com/VR%E7%94%B5%E5%BD%B1.jpg

@cshlxm
Copy link
Author

cshlxm commented Mar 6, 2017

搞定了 HttpConnectionHelper.java 里 getFileNameFromPhpServerResponseHeader 里 String fileName = contentDisposition.substring(start + 2, contentDisposition.length()-1);
但是遇见了新的问题,文件链接里如果是中文文件名在部分手机上存储时会变乱码,还在努力解决中

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