Skip to content

feat: enhance product/banner image validation (#14)#735

Draft
XtarXyan wants to merge 1 commit into
GEWIS:developfrom
XtarXyan:feature/EnhanceImageValidation
Draft

feat: enhance product/banner image validation (#14)#735
XtarXyan wants to merge 1 commit into
GEWIS:developfrom
XtarXyan:feature/EnhanceImageValidation

Conversation

@XtarXyan
Copy link
Copy Markdown
Contributor

@XtarXyan XtarXyan commented Feb 7, 2026

Description

This Pull Request addresses Issue #14 by adding a new validation function validateImageUpload which checks an uploaded image for an appropriate format, resolution and aspect ratio in conformity with the purpose of the image. Files product-controller and banner-controller utilize this function to validate image upload requests and return an HTTP error 400 if the images are invalid.

Related issues/external references

#14 Enhance product/banner image validation

Types of changes

  • Possibly breaking change

✅ PR Checklist

  • Test Coverage: New functionality has appropriate test coverage and all tests pass (npm run test)
  • Documentation: New functionality is documented with TypeDoc comments and API documentation is updated

🔗 Additional Notes

@RubenLWF RubenLWF linked an issue Feb 8, 2026 that may be closed by this pull request
@JustSamuel JustSamuel force-pushed the feature/EnhanceImageValidation branch from 93a7056 to b88cd68 Compare February 10, 2026 13:51
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.

[Enhancement]: Enhance Product/Banner Image Validation

1 participant