Skip to content

Commit

Permalink
Use POST to init multipart uploads. Closes #64.
Browse files Browse the repository at this point in the history
  • Loading branch information
boydgreenfield committed Oct 25, 2017
1 parent e2922ea commit b534b1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion onecodex/lib/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def upload_large_file(file_obj, filename, session, samples_resource, server_url,

# first check with the one codex server to get upload parameters
try:
upload_params = samples_resource.read_init_multipart_upload()
upload_params = samples_resource.init_multipart_upload()
except requests.exceptions.HTTPError:
raise UploadException('Could not initiate upload with One Codex server')

Expand Down
2 changes: 1 addition & 1 deletion tests/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def init_upload(self, obj):
'additional_fields': {},
}

def read_init_multipart_upload(self):
def init_multipart_upload(self):
return {
'callback_url': '',
's3_bucket': '',
Expand Down

0 comments on commit b534b1f

Please sign in to comment.