Skip to content

Commit

Permalink
Merge pull request #18991 from arash77/fix-empty-files-on-upload_file…
Browse files Browse the repository at this point in the history
…-to-library-contents

Fix the bioblend test failures
  • Loading branch information
mvdbeek authored Oct 15, 2024
2 parents f7ff83c + fe79bf1 commit c71ecab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/galaxy/actions/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def _upload_dataset(self, trans, folder_id: int, payload):
raise exceptions.InvalidFileFormatError("Invalid folder specified")
# Proceed with (mostly) regular upload processing if we're still errorless
if payload.upload_option == "upload_file":
for i, upload_dataset in enumerate(tool_params["files"]):
upload_dataset["file_data"] = payload.upload_files[i]
if payload.upload_files:
for i, upload_dataset in enumerate(tool_params["files"]):
upload_dataset["file_data"] = payload.upload_files[i]
tool_params = upload_common.persist_uploads(tool_params, trans)
uploaded_datasets = upload_common.get_uploaded_datasets(
trans, cntrller, tool_params, dataset_upload_inputs, library_bunch=library_bunch
Expand Down

0 comments on commit c71ecab

Please sign in to comment.