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

Upload Error When File Is In A Unicode Path #40

Closed
tsaiid opened this issue May 19, 2015 · 1 comment
Closed

Upload Error When File Is In A Unicode Path #40

tsaiid opened this issue May 19, 2015 · 1 comment
Labels

Comments

@tsaiid
Copy link

tsaiid commented May 19, 2015

My environment is Mac OS X 10.10.3. Python 3.4.3, installed from pyenv. I found that uploading error occurs when the file path contains Unicode chars. For example,

$ acd_cli ul 2000.03.24\ 國樂比賽/_0A_0037.jpg /
15-05-19 22:39:16.263 [ERROR] [acd_cli] - Uploading "_0A_0037.jpg" failed. Code: 400, msg: {"message":"{\"name\":\"content\",\"Content-Type\":\"image/jpeg\"}"}
[                                 ]   0.0% of    1MiB 0/1 -285.4KB/s
1 file(s) failed.

if I moved the file from 2000.03.24\ 國樂比賽/_0A_0037.jpg to 2000.03.24\ 1/_0A_0037.jpg, the upload succeeded.

 $ acd_cli ul 2000.03.24\ 1/_0A_0037.jpg /
[#################################] 100.0% of    1MiB 1/1  229.3KB/s

This error also occurs when the basename contains Unicode path.

$ acd_cli ul 2000.03.24\ 1/_0A_0037\ 拷貝.jpg  /
15-05-19 22:40:04.722 [ERROR] [acd_cli] - Uploading "_0A_0037 拷貝.jpg" failed. Code: 400, msg: {"message":"{\"name\":\"content\",\"Content-Type\":\"image/jpeg\"}"}
[                                 ]   0.0% of    1MiB 0/1  -69.6KB/s
1 file(s) failed.

Any help?

yadayada added a commit that referenced this issue May 19, 2015
@yadayada
Copy link
Owner

Should work now.

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

No branches or pull requests

2 participants