diff --git a/lib/galaxy/tools/parameters/basic.py b/lib/galaxy/tools/parameters/basic.py index 2c31daee649..874fd2c2ef7 100644 --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -604,6 +604,9 @@ class FileToolParameter(ToolParameter): if re.match(r'^[\w-]+$', session_id) is None: raise ValueError("Invalid session id format.") local_filename = os.path.abspath(os.path.join(upload_store, session_id)) + if upload_store != trans.app.config.new_file_path and not os.path.exists(local_filename): + # Fallback for old chunked API, remove in 22.05 + local_filename = os.path.abspath(os.path.join(trans.app.config.new_file_path, session_id)) else: # handle nginx upload upload_store = trans.app.config.nginx_upload_store