refactor: Adjust chunk size to 4 MB and increase parallel uploads to 5
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Vercel Production Deployment / Deploy-Production (push) Successful in 1m33s

This commit is contained in:
2025-10-16 13:12:05 +02:00
parent 0dfdbc1a7e
commit 22ed99da86

View File

@@ -2,8 +2,8 @@
import { useState, useEffect, useRef } from 'react';
const CHUNK_SIZE = 8 * 1024 * 1024; // 8 MB
const PARALLEL_UPLOADS = 4;
const CHUNK_SIZE = 4 * 1024 * 1024; // 4 MB
const PARALLEL_UPLOADS = 5;
function bufferToBase64(buffer: ArrayBuffer) {
let binary = '';