mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Provide fallback for old chunked API
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user