HIGH story-document-attachment-coordinator-007 2 pts
2
Story Points
High
Priority
Document Attachment to Activities
Feature

User Story

As a user
I want to receive clear, actionable error messages when a file upload fails or violates size or count limits
So that So that I understand exactly what went wrong and what I need to do to successfully attach my document without having to guess or retry blindly

Acceptance Criteria

  • Given the user selects a file larger than 10 MB, when client-side validation runs, then an error message clearly states 'File is too large. Maximum size is 10 MB.' before any upload attempt
  • Given the activity already has 5 documents attached, when the user tries to add another, then a message clearly states the maximum of 5 documents per activity has been reached
  • Given a valid file is selected and the upload fails due to a network error, when the error occurs, then a descriptive message is shown with a retry button
  • Given an upload fails, when the user taps retry, then the upload resumes from the same file without requiring the user to re-select it
  • Given all validations pass and the upload succeeds, when the process completes, then no error messages are shown and the user is returned to the activity summary with the new attachment visible

Business Value

Peer mentors are frequently beginner-level app users, some of whom are older adults or people with cognitive challenges. Opaque error messages lead to abandonment of the attachment flow, resulting in missing evidence records. Clear validation feedback ensures documentation compliance even for less tech-savvy users.