From 29eb856a45a7ff4a00d48c57ad75a9f3df1cfd81 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Oct 2025 21:26:47 +0000 Subject: [PATCH] file upload fix --- src/shared/services/file/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/services/file/index.ts b/src/shared/services/file/index.ts index 158c6b9..93074cc 100644 --- a/src/shared/services/file/index.ts +++ b/src/shared/services/file/index.ts @@ -4,9 +4,9 @@ import { Upload } from "tus-js-client"; import { request } from "~/shared/libs"; -const STORAGE_API_URL = import.meta.env.VITE_API_BASE_STORAGE_URL; +const STORAGE_API_URL = '/api/v1.5/storage'; const MAX_CHUNK_SIZE = 80 * 1024 * 1024; // 80 MB -const TUS_ENDPOINT = import.meta.env.VITE_TUS_ENDPOINT?.trim(); +const TUS_ENDPOINT = '/tus/files'; const TUS_STATUS_POLL_INTERVAL_MS = 2000; const TUS_STATUS_POLL_TIMEOUT_MS = 5 * 60 * 1000;