馃悰 [Bug] post gets created even if the user uploads unsupported file formats
Created by: dasari810
while creating post if the user uploads image of format other than supported ( jpg/png/gif) the post gets created and the post appears as :
馃悰 Bugreport
Steps to reproduce the behavior
- create a new post
- upload a image of file format other that ( jpg/png/gif)
- click the confirm button
- now check the created post
Expected behavior
the post should not get created or warn ( or just inform the user ) about the supported file formats
Version & Environment
Type: [ Desktop ]
- OS: [ubuntu ]
- Browser: [ chrome 85.0.4183.83 ]
- Version [ ]
- Device: []
Additional context
I think this issue can be resolved if user is restricted to upload only supported file formats , like .. when the user clicks the upload button only the supported file formats are filtered from users device ( as we do it in html by accept="image/*"
for the file input field)