Allow multiple file uploads per ORA instance

Description

Action

When a user uploads new files as part of an ORA response, no files that they’ve previously uploaded are deleted before the new files are stored.

Acceptance

  • A user can upload new files and continue to view the existing files attached to a response.

  • We will not remove any existing ability to upload multiple files in a single action.

  • During the uploading of new files in a response, we must examine the number or previously uploaded files, add that to the number of new files to be uploaded, and ensure that this total new file count does not exceed the set file count limit.

    • We will not upload any new files if the total new file count would exceed the threshold. Instead, notify the user that they would exceed the limit (use an existing error-condition template for UI inspiration).

    • The SubmissionMixin.MAX_FILES_COUNT constant defines the file count threshold. This value has to make it’s way into the JS code for client-side validation.

    • We should already have information in a JS view about how many files have previously been uploaded, since we display a download URL for all existing files.

 

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Assignee

Andrew Tesker

Reporter

Simon Chen

Labels

Reach

None

Impact

None

Platform Area

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Story Points

3

Actual Points

None

Category of Work

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Epic Link

Sprint

None

Priority

Unset
Configure