In the below switch case statement i want to check if value of $mime is "image/" and not be very specific to image/jpeg, It can be gif png or anything i am just concerned about "image/" part in the mime
The way it is stored in database is image/jpeg image/gif etc . What should i do?