Skip to content

Commit

Permalink
Name dataset with the same name as of the object being downloaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili committed Apr 2, 2018
1 parent 651d4c7 commit 6e0fea9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/galaxy/managers/cloud_storage.py
Expand Up @@ -55,8 +55,7 @@ def download(self, trans, history_id, provider, container, obj, credentials):

with open(staging_file_name, "r") as f:
content = f.read()
headers = {'content-disposition': 'form-data; name="{}"; filename="{}"'.format(
'files_0|file_data', staging_file), }
headers = {'content-disposition': 'form-data; name="{}"; filename="{}"'.format('files_0|file_data', obj), }

input_file = FieldStorage(headers=headers)
input_file.file = input_file.make_file()
Expand Down

0 comments on commit 6e0fea9

Please sign in to comment.