diff --git a/lib/galaxy/actions/library.py b/lib/galaxy/actions/library.py index aec0c5005664..432ff9359bda 100644 --- a/lib/galaxy/actions/library.py +++ b/lib/galaxy/actions/library.py @@ -248,7 +248,7 @@ def _make_library_uploaded_dataset(self, trans, params, name, path, type, librar uploaded_dataset.dbkey = params.get('dbkey', None) uploaded_dataset.to_posix_lines = params.get('to_posix_lines', None) uploaded_dataset.space_to_tab = params.get('space_to_tab', None) - uploaded_dataset.tag_using_filenames = params.get('tag_using_filenames', True) + uploaded_dataset.tag_using_filenames = params.get('tag_using_filenames', False) uploaded_dataset.purge_source = getattr(trans.app.config, 'ftp_upload_purge', True) if in_folder: uploaded_dataset.in_folder = in_folder diff --git a/lib/galaxy/webapps/galaxy/api/library_contents.py b/lib/galaxy/webapps/galaxy/api/library_contents.py index 81c86d15dac1..4fb2c7de9d2d 100644 --- a/lib/galaxy/webapps/galaxy/api/library_contents.py +++ b/lib/galaxy/webapps/galaxy/api/library_contents.py @@ -230,6 +230,8 @@ def create(self, trans, library_id, payload, **kwd): # The rest of the security happens in the library_common controller. real_folder_id = trans.security.encode_id(parent.id) + payload['tag_using_filenames'] = util.string_as_bool(payload.get('tag_using_filenames', None)) + # are we copying an HDA to the library folder? # we'll need the id and any message to attach, then branch to that private function from_hda_id, from_hdca_id, ldda_message = (payload.pop('from_hda_id', None), payload.pop('from_hdca_id', None), payload.pop('ldda_message', ''))