fix: add dynamic timeout for document uploads (#33) #34
Reference in New Issue
Block a user
Delete Branch "issue-33-document-upload-timeout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #33
Document uploads were failing with "timeout of 10000ms exceeded" error because the global axios client timeout (10s) was too short for medium-sized files (1-5MB) on slower connections.
Changes
calculateUploadTimeout()function that calculates timeout based on file sizeupload()anduploadWithProgress()methodsTimeout Examples
Test Plan
Acceptance Criteria from Issue