im trying to upload file with python-requests
with open('file.zip','rb') as fff:
up = requests.post(url,files=[('file[]',fff)])
and getting:
UnicodeDecodeError: 'ascii' codec can't decode byte ...
when tried to use unicode(fff) and file was uploaded but then i downloaded it and its only 70 bytes
content of ZIP file opened in notepad:
<open file 'file.zip', mode 'rb' at 0x0000000002F6E030>