Improper images types being uploaded.
I've got a site where members can upload images. The problem is that the members are trying to upload .bmp and .tif images.
The images are not successfully uploaded, however, the image info (file name, location) is being saved to the database. This causes a broken image to be displayed on the front-end.
Where, in the model, should I be checking the file type and how should I kick back an error? I have already tried adding 'accept' => 'jpg|jpeg|gif|png' to the upload field which did not work.
Comments