slacker icon indicating copy to clipboard operation
slacker copied to clipboard

Issue uploading files with a unicode filename

Open albrnick opened this issue 6 years ago • 0 comments

I had an issue where my script was using unicode literals, and the .files.upload wasn't uploading the file properly.

Turns out the filename string was in unicode, and in init.py, line 613:

        if isinstance(file_, str):

It's just testing for str, and not str and unicode.

If you changed that to detect str and unicode, I believe it would work! :)

Thanks! Nick

albrnick avatar Jan 07 '19 22:01 albrnick