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.
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.