file upload fix

This commit is contained in:
root 2025-10-01 21:26:47 +00:00
parent 9449a45ef9
commit 29eb856a45
1 changed files with 2 additions and 2 deletions

View File

@ -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;