Skip to content

Commit 2a47611

Browse files
committed
add note regarding file-like object uploading
1 parent cdc9066 commit 2a47611

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/advanced/working_with_files.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Upload
2828
>>> data
2929
{'id': 7167, 'token': '7167.ed1ccdb093229ca1bd0b043618d88743'}
3030
31+
If a file-like object is provided, be sure that it contains ``str`` and not ``unicode`` under Python 2, and
32+
``bytes`` and not ``str`` under Python 3, otherwise Python-Redmine will have to make an additional conversion,
33+
which will affect performance.
34+
3135
Download
3236
--------
3337

0 commit comments

Comments
 (0)