mattwilliamson
8/27/2010 - 9:32 PM

iSentry.php

<?php
$device_id = $_POST["udid"];
if(array_key_exists("photo", $_FILES)) {
	$file = $_FILES["photo"];
	if($file["error"] == 0) {
		$size = $file["size"]; // Bytes
		$type = $file["type"]; // image/jpeg
		move_uploaded_file($file["tmp_name"], "/path/to/new/location");
	} else {
		// There was an error
	}
}
?>