srht: Fixed logic error in submit.py
This commit is contained in:
parent
76889851be
commit
4631c2c879
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ else:
|
|||
for file in args.datafile:
|
||||
filename = os.path.basename(file)
|
||||
# Send contents of file as HTTP POST with multipart/formdata payload
|
||||
files.append(('file[]', (filename, open(args.datafile, 'rb'), 'application/octet-stream')))
|
||||
files.append(('file[]', (filename, open(file, 'rb'), 'application/octet-stream')))
|
||||
|
||||
print('Uploading {} to {}'.format(filename, url))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue