Skip to content

fix(common): introduce magic file type validator to nestjs common #14948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 50 commits into from
Apr 14, 2025

Conversation

Chathula
Copy link
Contributor

  • introduce magic file type validator logic to nestjs common with validator class FileTypeValidator

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix

  • Feature

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

  • Other... Please describe:

  • security enhancement fix

What is the current behavior?

Issue Number: N/A

What is the new behavior?

  • now user can use addMagicFileTypeValidator pipe method instead of addFileTypeValidator pipe to more secure mime type validation

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Chathula and others added 30 commits April 11, 2025 14:40
@Chathula Chathula changed the title Fix nest common mime validator fix(common): introduce magic file type validator to nestjs common Apr 11, 2025
@kamilmysliwiec kamilmysliwiec merged commit cb0d650 into nestjs:10.4.15 Apr 14, 2025
1 of 2 checks passed
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.

2 participants