refactor: Adjust chunk size to 4 MB and increase parallel uploads to 5
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user