diff options
Diffstat (limited to 'lib/rfqs/tbe-table/file-dialog.tsx')
| -rw-r--r-- | lib/rfqs/tbe-table/file-dialog.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rfqs/tbe-table/file-dialog.tsx b/lib/rfqs/tbe-table/file-dialog.tsx index 1d1a65ea..772eb930 100644 --- a/lib/rfqs/tbe-table/file-dialog.tsx +++ b/lib/rfqs/tbe-table/file-dialog.tsx @@ -76,7 +76,7 @@ export function TBEFileDialog({ // Download submitted file const downloadSubmittedFile = async (file: any) => { try { - const response = await fetch(`/api/file/${file.id}/download`) + const response = await fetch(`/api/tbe-download?path=${encodeURIComponent(file.filePath)}`) if (!response.ok) { throw new Error("Failed to download file") } |
