Skip to content

Conversation

@StenOskar
Copy link
Contributor

The reason the image uploading failed was because the serializer did validation through full_clean(). The image model requires an image field, but the serializer excluded it. So validation ran before the image file was bounded to the model.
Also added validation to ensure the image file and title are provided and that the uploaded file is a valid image. Enhanced tag processing to strip whitespace, remove empty and duplicate tags, and preserve the original filename when saving the image.

New member button in the Navbar that links to the Samfundet member site using a constant defined in samf-three.ts. Also refactors cookie property check for impersonation to use Object.prototype.hasOwnProperty because it's safer and more reliable
Added validation to ensure the image file and title are provided and that the uploaded file is a valid image. Enhanced tag processing to strip whitespace, remove empty and duplicate tags, and preserve the original filename when saving the image.
@StenOskar StenOskar self-assigned this Oct 23, 2025
Fixed import and fix exception chaining
@StenOskar StenOskar changed the base branch from stenhalse/web-54-samf4-login-as-member to master October 23, 2025 22:07
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