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

通过shell上传文件功能有问题,给出修复建议 #97

Closed
jjf012 opened this issue Sep 3, 2018 · 1 comment
Closed

通过shell上传文件功能有问题,给出修复建议 #97

jjf012 opened this issue Sep 3, 2018 · 1 comment
Assignees
Labels
🐛Bug 程序自身问题
Milestone

Comments

@jjf012
Copy link
Contributor

jjf012 commented Sep 3, 2018

filemanager\index.js
640行
const fileName = f.substr(f.lastIndexOf('/') + 1);
改为
const fileName = f.substr(f.lastIndexOf('\\') + 1);
664行也是一样将\改为//,然后可以正常上传了。
因为获取到的路径是C:\\Users\\test\\Documents\\\xb0\xb2\xd7\xb0\xcb\xb5\xc3\xf7.txt,用/截取不到。

@Medicean
Copy link
Collaborator

Medicean commented Sep 3, 2018

确实在 windows 客户端下存在这个问题,感谢 👍

@Medicean Medicean self-assigned this Sep 3, 2018
@Medicean Medicean added the 🐛Bug 程序自身问题 label Sep 3, 2018
@Medicean Medicean added this to the 2.0.x milestone Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug 程序自身问题
Projects
None yet
Development

No branches or pull requests

2 participants