I have problem while trying to send big file via requests.toolbelt in python2. I need to send to server filename + filedata + mimetype
My upload "command" looks like this:
file = MultipartEncoder({'files[]': (filename, filedata, mimetype)})
UploadFile = requests.post(UploadURL, files=file, allow_redirects=False)
But i'm getting this error:
'MultipartEncoder' object is not iterable
How to fix that?