summaryrefslogtreecommitdiff
path: root/lib/rfqs/tbe-table/file-dialog.tsx
diff options
context:
space:
mode:
authorrlaks5757 <rlaks5757@gmail.com>2025-03-27 17:48:36 +0900
committerrlaks5757 <rlaks5757@gmail.com>2025-03-27 17:48:36 +0900
commit773918229ccb14c0d00798fbbf2b2be0130a8251 (patch)
treeab9e200e65cc471ec139cd8482bde70a3b0a105f /lib/rfqs/tbe-table/file-dialog.tsx
parent92ddb4f13d48cbf344dc2bf63df4457b3c713608 (diff)
parent34bbeb86c1a8d24b5f526710889b5e54d699cfd0 (diff)
merge complete
Diffstat (limited to 'lib/rfqs/tbe-table/file-dialog.tsx')
-rw-r--r--lib/rfqs/tbe-table/file-dialog.tsx2
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")
}