Skip to content
Snippets Groups Projects
Commit f5e60412 authored by kimth's avatar kimth
Browse files

Send multiple files to xqueue

parent b2599f07
No related branches found
No related tags found
No related merge requests found
......@@ -97,11 +97,11 @@ class XQueueInterface(object):
def _send_to_queue(self, header, body, files_to_upload):
payload = {'xqueue_header': header,
'xqueue_body' : body}
files = None
files = {}
for f in files_to_upload:
files.update({ f.name: f })
return self._http_post(self.url+'/xqueue/submit/', payload, files)
return self._http_post(self.url+'/xqueue/submit/', payload, files=files)
def _http_post(self, url, data, files=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment