-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Here's a structured bug report based on your issue:
Describe the bug
When attempting to upload a PDF file instead of an image in the banner image upload section while creating a post, the system fails to handle the validation correctly. Instead of displaying an appropriate error message, it results in an internal server error.
To Reproduce
Steps to reproduce the behavior:
- Navigate to the Create Post page.
- Click on the Banner Image Upload option.
- Select and upload a PDF file instead of an image (e.g., JPG, PNG).
- Click on the Submit button.
- Observe that an internal server error occurs instead of a validation warning.
Expected Behavior
The system should properly validate the uploaded file format and display a relevant error message instead of allowing a non-image file to be uploaded and causing an internal server error.
Screenshots
Attached
Additional Context
- The issue suggests a missing validation check for file formats during upload.
- Ideally, the system should restrict accepted formats to image file types only and provide clear feedback if an invalid format is uploaded.
Let me know if you need any modifications or additions! 🚀 ### `
`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

