upload only image !!!

A

Anonymous

Guest
hi
i want a user to be able to upload only image file, (not other file like pdf ,doc,exe,...)
are ther any solution?
thnks
 
Just check whether your $_FILES['userfile']['type'] is image/gif or image/jpg and so on.
 
Back
Top