Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hey Larry

Sorry,i am want to express check the uploaded file has the correct type。

 

$allowed=array('image/pjpeg','image/jpeg','image/JPG','image/X-PNG','image/PNG','image/png','image/x-png');

 

There are many image formats,for example JPEG,PNG,bmp,gif and so on

I do not know whether the php code needs to contain all the image formats

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...