file upload fix
This commit is contained in:
parent
9449a45ef9
commit
29eb856a45
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue