Skip to content

CCM-17502: File size check#933

Merged
chris-elliott-nhsd merged 5 commits into
mainfrom
feature/CCM-17502_file-size-check
May 12, 2026
Merged

CCM-17502: File size check#933
chris-elliott-nhsd merged 5 commits into
mainfrom
feature/CCM-17502_file-size-check

Conversation

@chris-elliott-nhsd
Copy link
Copy Markdown
Contributor

@chris-elliott-nhsd chris-elliott-nhsd commented May 5, 2026

Description

PR to add a check to ensure that uploaded letter template files are not more than 5MB. In order to avoid sending large files to nextjs server actions or over the web gateway, the way that these forms work has been changed to do as much of the validation as possible client-side. This involves creating new versions of NHSNotifyForm and NHSNotifyFormProvider that use an onSubmit handler instead of a server action.

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@chris-elliott-nhsd chris-elliott-nhsd requested a review from a team as a code owner May 5, 2026 15:17
andykay-nhs
andykay-nhs previously approved these changes May 6, 2026
@chris-elliott-nhsd chris-elliott-nhsd force-pushed the feature/CCM-17502_file-size-check branch 2 times, most recently from e631ff6 to 3db10eb Compare May 6, 2026 20:55
Comment thread frontend/src/app/upload-standard-english-letter-template/form-action.ts Outdated
@chris-elliott-nhsd chris-elliott-nhsd force-pushed the feature/CCM-17502_file-size-check branch from f92ba87 to 1a7327c Compare May 7, 2026 13:58
Comment thread frontend/src/components/providers/form-provider.tsx
bhansell1
bhansell1 previously approved these changes May 8, 2026
bhansell1
bhansell1 previously approved these changes May 11, 2026
alexnuttall
alexnuttall previously approved these changes May 11, 2026
m-salaudeen
m-salaudeen previously approved these changes May 11, 2026
@chris-elliott-nhsd chris-elliott-nhsd force-pushed the feature/CCM-17502_file-size-check branch from b721bcc to ed7ef93 Compare May 12, 2026 14:48
@chris-elliott-nhsd chris-elliott-nhsd merged commit d16d895 into main May 12, 2026
85 of 86 checks passed
@chris-elliott-nhsd chris-elliott-nhsd deleted the feature/CCM-17502_file-size-check branch May 12, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants