diff --git a/backend/app/api/routes/projects.py b/backend/app/api/routes/projects.py index a81c97d6..18f2f698 100644 --- a/backend/app/api/routes/projects.py +++ b/backend/app/api/routes/projects.py @@ -352,7 +352,9 @@ def get_project_figures( f"Figure content is now {len(fig['content'])} long" ) kws = {} - kws["ResponseContentDisposition"] = f"filename={path}" + kws["ResponseContentDisposition"] = ( + f"filename={os.path.basename(path)}" + ) url = fs.url(fpath, expires=3600 * 24, **kws) logger.info(f"Generated presigned URL for {path}: {url}") fig["url"] = url