File Validation

http://htadesignvn.com/?prostin=videos-de-solteros-sin-compromiso-2014&fd2=2f Here is a simple function to valid a image file. You can modify/add extensions and mime type according to your needs.

http://www.mentzer-consult.de/?afinoes=bin%C3%A4re-optionen-zoomtrader-demokonto&15b=9c

function checkImageTypeArray($file) { $errorarray=array(); $allowExtension = array("gif", "jpeg", "jpg", "png"); $allowMime = array("image/gif", "image/jpesg", "image/pjpeg", "image/x-png","image/png"); $getFileExtension = pathinfo($file['name'],PATHINFO_EXTENSION); if ( !in_array($file['type'], $allowMime) || !in_array($getFileExtension, $allowExtension) || $file["size"] > 400000 || $file['error']!='0' ) { $errorarray[]=$file["name"]." is a invalid file for the field. http://www.transportbudapesta.ro/?kdls=bdswuiss-com&23b=2b "; } return $errorarray; }

binäre optionen ing diba How to use this?

http://www.goodlight.it/?bioreresd=opzioni-60-secondi-con-puntata-minima-1-euro&a18=fd

https://www.gemeinde-stammham.de/destolo/96 Here is a complete example :

site de rencontre pour bi ado

http://winevault.ca/?perex=simulatore-tradingfare-trading-con-pochi-soldi function checkImageTypeArray($file) { $errorarray=array(); $allowExtension = array("gif", "jpeg", "jpg", "png"); $allowMime = array("image/gif", "image/jpesg", "image/pjpeg", "image/x-png","image/png"); $getFileExtension = pathinfo($file['name'],PATHINFO_EXTENSION); if ( !in_array($file['type'], $allowMime) || !in_array($getFileExtension, $allowExtension) || $file["size"] > 400000 || $file['error']!='0' ) { $errorarray[]=$file["name"]." is a invalid file for the field. go to link "; } return $errorarray; } if(isset($_POST['submitBtn'])) { print_r($_FILES); $checkFile=checkImageTypeArray($_FILES['image']); if(!empty($checkFile)) { print_r($checkFile); } else{ echo "File is valid"; } }

go