Skip to content

Upload and Sanitize Common Component  #28670

Closed
5 of 5 issues completed
Closed

Description

@mbertucci

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

Upload states

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

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. mbertucci commented on May 28, 2025

    @mbertucci
    ContributorAuthor
  2. mbertucci commented on May 28, 2025

    @mbertucci
    ContributorAuthor

    @ethantspitt please add designs to the upload component

  3. mbertucci commented on May 30, 2025

    @mbertucci
    ContributorAuthor

    @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

  4. changed the title [-]Upload and Sanitize [/-] [+]Upload and Sanitize Story - Draft [/+] on May 30, 2025
  5. added
    connect
    on May 30, 2025
  6. thorwolpert commented on Jun 1, 2025

    @thorwolpert
    Collaborator

    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.

  7. oanyahuru commented on Jun 2, 2025

    @oanyahuru
    Collaborator

    Please review the requirements here

  8. added theissue type on Jun 3, 2025
  9. oanyahuru commented on Jun 23, 2025

    @oanyahuru
    Collaborator

    Further information on requirements for uploads and list of documents here

  10. removed their assignment
    on Jun 26, 2025
  11. 2 remaining items

  12. changed the title [-]Upload and Sanitize Story[/-] [+]Upload and Sanitize Common Component [/+] on Jul 3, 2025
  13. changed the issue type fromtoon Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Assetsconnect

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions