Skip to content

Commit bbf1034

Browse files
committed
Fixed wrong API url path in handleDownload
1 parent 662f29d commit bbf1034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/pages/Files/ListOfFiles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const ListOfFiles: React.FC<{ showTable?: boolean }> = ({
6161
const handleDownload = async (guid: string, fileName: string) => {
6262
try {
6363
setDownloading(guid);
64-
const { data } = await publicApi.get(`/v1/api/uploadFile/${guid}`, { responseType: 'blob' });
64+
const { data } = await publicApi.get(`/api/v1/api/uploadFile/${guid}`, { responseType: 'blob' });
6565

6666
const url = window.URL.createObjectURL(new Blob([data]));
6767
const link = document.createElement("a");

0 commit comments

Comments
 (0)