Skip to content

[MOL-17485][KM] add strictFileExt validation to check that uploaded filenames have extensions matching accepted fileTypes#93

Merged
weili-govtech merged 5 commits intomainfrom
MOL-17485
Feb 20, 2026
Merged

[MOL-17485][KM] add strictFileExt validation to check that uploaded filenames have extensions matching accepted fileTypes#93
weili-govtech merged 5 commits intomainfrom
MOL-17485

Conversation

@chiakaiming
Copy link
Copy Markdown
Contributor

Changes
Description of changes...

  • delete branch

Changelog entry

  • add strictFileExt validation for file-upload to check that uploaded filenames have extensions matching accepted fileTypes in fileType validation
  • [WARNING] remove auto addition of 'JPEG' in default fileType errorMessage if JPG is included in args

Additional information

Comment thread src/__tests__/fields/file-upload.spec.ts Outdated
@qroll qroll requested a review from weili-govtech February 10, 2026 04:12
Comment thread src/utils/file-helper.ts
Comment thread src/utils/file-helper.ts
Comment thread src/fields/file-upload.ts Outdated
Comment thread src/fields/file-upload.ts Outdated
Comment thread src/__tests__/fields/file-upload.spec.ts Outdated
Comment thread src/__tests__/fields/file-upload.spec.ts Outdated
@weili-govtech weili-govtech merged commit 187524c into main Feb 20, 2026
1 check passed
@weili-govtech weili-govtech deleted the MOL-17485 branch February 20, 2026 01:55
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.

3 participants