Skip to content

Commit

Permalink
fix(upload-core): default chunk size to 6MB
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-a-young committed Nov 21, 2024
1 parent 5897344 commit 1a3e718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/upload-core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const hashCode = (str) => {

const defaultOptions = {
endpoint: '/ms/api/availity/internal/core/vault/upload/v1/resumable',
chunkSize: 5e6, // 5MB
chunkSize: 6e6, // 6MB (Max size from backend is 5MiB. Setting to 6MB to be safe)
removeFingerprintOnSuccess: true,
pollingTime: 5000,
retryDelays: [0, 1000, 3000, 5000],
Expand Down

0 comments on commit 1a3e718

Please sign in to comment.