Change post_param from dict to list of tuples to allow list of files

This commit is contained in:
Scott Williams 2016-02-05 00:18:49 +00:00 committed by wing328
parent 833ce25cab
commit 2407c494e7

View File

@ -402,7 +402,7 @@ class ApiClient(object):
filedata = f.read()
mimetype = mimetypes.\
guess_type(filename)[0] or 'application/octet-stream'
params.append(tuple[k, tuple([filename, filedata, mimetype])])
params.append(tuple([k, tuple([filename, filedata, mimetype])]))
return params