Image Upload Problem
Linux, Apache, MySQL, PHP
3
Posts
3
Posters
0
Views
1
Watching
-
-
Put all the image extensions in an array then use the in_array() function to check if the mime type of the file is in the array. Uploading of file exposes your application to lots of security vulnerabilities, checking mime type is not a good method of filtering certain files as the mime type is determined by the browser. You should read about the security of file uploading.