Repository navigation
Description
User Story: Uploading Documents for Registration/Filing
As a user,
I want to upload any type of file to the registration/filing system,
so that I can fulfill the request from Registries efficiently and accurately.
Design
All the various iterations of the component
Validation states in STR (similar approach will be used across the board)
Context
We are building a common component for Registries applications that enables document upload and sanitization.
This reusable component will allow other teams to integrate a secure, accessible, and standardized upload experience within their own workflows.
Business Rules
- Uploaded files must be sanitized to remove malicious content.
- 3 MB max
- Only supported file types should be accepted.
- Uploaded documents must be categorizable via a controlled dropdown (e.g., Form, Proof of Identity).
- Users must be able to delete files after upload.
- The component must comply with accessibility standards (e.g., WCAG 2.1 AA).
- All actions (upload, categorize, delete) must be auditable.
- Errors must be clearly communicated to the user.
- Files must be stored securely and handled within size and performance constraints.
Acceptance Criteria
- Users can upload a document through the component.
- Users receive a confirmation once the document is uploaded successfully.
- The component provides a dropdown to categorize the uploaded document.
- Users can delete an uploaded document and receive confirmation of deletion.
- The component supports only specific file types (e.g., PDF, DOCX, JPG, PNG).
- Uploads over the size limit are rejected with a user-friendly error message.
- The system automatically sanitizes uploaded documents before storage.
- The upload interface meets accessibility compliance standards (e.g., screen reader compatibility, keyboard navigation).
- All upload, categorize, and delete actions are logged for audit purposes.
- Upload and delete actions are completed within 2 seconds under normal conditions.
Scenarios (Gherkin-style)
-
Scenario: Uploading a file
- Given the user has a file to upload
- When the user clicks on the "Upload" button and selects the file
- Then the system should accept the file type, display its name, and store it in the appropriate location
-
Scenario: Sanitizing uploaded files
- Given a file has been uploaded
- When the system processes the uploaded file
- Then the system should sanitize the file by removing any potentially harmful content or code
-
Scenario: File upload and sanitization feedback
- Given the user has uploaded a file
- When the system completes processing the file
- Then the user should receive feedback on whether the file was successfully uploaded and sanitized
-
Scenario: Categorizing a file
- Given the file has been uploaded
- When the user is prompted to select a document type
- Then the user can choose from a dropdown list of predefined types
-
Scenario: Deleting an uploaded file
- Given the user has uploaded a file
- When the user chooses to delete it
- Then the system removes the file and shows a confirmation message
-
Scenario: Uploading an unsupported file type
- Given the file type is not supported
- When the user attempts to upload it
- Then the system should reject the upload and show an appropriate error message
-
Scenario: Uploading a file that is too large
- Given the file exceeds the maximum allowed size
- When the user uploads it
- Then the system should reject the file and inform the user of the limit
Activity
mbertucci commentedon May 28, 2025
@oanyahuru
mbertucci commentedon May 28, 2025
@ethantspitt please add designs to the upload component
mbertucci commentedon May 30, 2025
@oanyahuru please review BA requirements and lets add to this to ensure we have captured all of the business requirements. These were my best guess. I imagine STRR may have already defined business requirements so please check with their team. It might save you some time :) things to add would be size limit and file type ext.. this is just a draft Requirements and Acceptance Criteria at this point
[-]Upload and Sanitize [/-][+]Upload and Sanitize Story - Draft [/+]thorwolpert commentedon Jun 1, 2025
We met with @doug-lovett and @cameron-eyds and the 2 functions will be separate.
Most projects can use the sanitize service independent of a common doc service.
oanyahuru commentedon Jun 2, 2025
Please review the requirements here
oanyahuru commentedon Jun 23, 2025
Further information on requirements for uploads and list of documents here
2 remaining items
[-]Upload and Sanitize Story[/-][+]Upload and Sanitize Common Component [/+]