Skip to content

Upload: Progress indicator for uploads #106

Closed

Description

@Ayush8923

Is your feature request related to a problem?
Large document uploads only show a generic loading state in the UI. Users lack visibility into upload progress and estimated time remaining, which can lead to frustration.

Describe the solution you'd like

  • Add an uploadWithProgress helper in app/lib/apiClient.ts using XMLHttpRequest for upload.onprogress
  • Track uploadProgress percentage state in app/(main)/document/page.tsx
  • Display a progress bar in UploadDocumentModal when isUploading is true
  • No backend changes required - XHR handles bytes sent from browser to server
Original issue

Describe the current behavior
When uploading large documents, the UI only shows a generic loading state (isUploading). Users have no visibility into upload progress or estimated time remaining.

Describe the enhancement you'd like

  • Add an uploadWithProgress helper in app/lib/apiClient.ts using XMLHttpRequest (which supports upload.onprogress, unlike fetch)
  • Track uploadProgress percentage state in app/(main)/document/page.tsx
  • Display a progress bar in UploadDocumentModal when isUploading is true
  • No backend changes required for now - XHR tracks bytes sent from browser to server

Activity

  1. moved this to To Do in Kaapi-devon Apr 2, 2026
  2. changed the title [-]Add upload progress bar for document uploads[/-] [+]Upload: Progress indicator for uploads[/+] on Apr 2, 2026
  3. self-assigned this
    on Apr 2, 2026
  4. moved this from To Do to In Progress in Kaapi-devon Apr 6, 2026
  5. Ayush8923 commented on Apr 7, 2026

    @Ayush8923
    CollaboratorAuthor

    As per the discussion with team, also need to add a document upload limit of up to 25 MB.

  6. moved this from In Progress to In Review in Kaapi-devon Apr 7, 2026
  7. Ayush8923 commented on Apr 8, 2026

    @Ayush8923
    CollaboratorAuthor

    The changes is merged into staging. Need to test there.

  8. moved this from In Review to Closed in Kaapi-devon Apr 10, 2026
  9. closed this as completedby moving to Closed in Kaapi-devon Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

  • Status
    Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions