fix(frontend): disable TUS resume caching to fix QuotaExceededError and show full upload errors
Some checks failed
Automated Container Build / build-and-push (push) Failing after 16s
Some checks failed
Automated Container Build / build-and-push (push) Failing after 16s
This commit is contained in:
parent
d9433a7a96
commit
382e7b8df0
2 changed files with 2 additions and 1 deletions
|
|
@ -2157,7 +2157,7 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{batch.error && (
|
{batch.error && (
|
||||||
<div className="text-[10px] mt-2 line-clamp-3" style={{ color: 'var(--color-danger)' }}>
|
<div className="text-[10px] mt-2 break-all" style={{ color: 'var(--color-danger)' }}>
|
||||||
{batch.error}
|
{batch.error}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -244,6 +244,7 @@ class ApiClient {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const upload = new tus.Upload(file, {
|
const upload = new tus.Upload(file, {
|
||||||
endpoint: `${API_BASE}/api/tus/`,
|
endpoint: `${API_BASE}/api/tus/`,
|
||||||
|
resume: false,
|
||||||
chunkSize: 5 * 1024 * 1024, // 5MB chunks bypass Next.js 10MB proxy limit
|
chunkSize: 5 * 1024 * 1024, // 5MB chunks bypass Next.js 10MB proxy limit
|
||||||
retryDelays: [0, 3000, 5000, 10000, 20000],
|
retryDelays: [0, 3000, 5000, 10000, 20000],
|
||||||
metadata: {
|
metadata: {
|
||||||
|
|
|
||||||
Reference in a new issue