Uploading multiple files in a single request using python requests module
The Python requests module provides good documentation on how to upload a single file in a single request: files = {'file': open('report.xls', 'rb')} I tried extending that example by using this code in an attempt to upload multiple files: files = {'file': [open('report.xls', 'rb'), open('report2.xls, 'rb')]} but it resulted in this error: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 1052, in splittype match = _typeprog.match(url) TypeError: expected string or buffer Is it possible to upload a list of files in a single request using this module,