Skip to content

Commit

Permalink
increase the chunkSizeBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrufiqbalHO committed Nov 26, 2024
1 parent 03edd6d commit 21f35e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ function UploadFilesForm(props: UploadFilesProps): JSX.Element {
// Maximum object size 5 TiB
// Maximum number of parts per upload 10,000
// 5 MiB to 5 GiB. There is no minimum size limit on the last part of your multipart upload.
const chunkSizeBytes = Math.max(selectedFile.size / 10_000, 50 * ONE_MB);
//const chunkSizeBytes = Math.max(selectedFile.size / 10_000, 50 * ONE_MB);
const chunkSizeBytes = 300 * ONE_MB;
// per file try/finally state to initiate uploads
try {
const contentType = selectedFile.type ? selectedFile.type : 'text/plain';
Expand Down

0 comments on commit 21f35e1

Please sign in to comment.