empty($_FILES['imageUpload']['name']) ||
empty($_FILES['imageUpload']['type'])
) {
- $this->err = "Missing file details";
+ $this->err = "Missing file details : ". print_r($_FILES['imageUpload'],true);
return false;
}
}
- function toRooArray($req = array()) {
- // echo '<PRE>';print_r($req);exit;
+ function toRooArray($req) {
+
$ret= $this->toArray();
static $ff = false;
umask($oldumask);
}
- file_put_contents($f, file_get_contents($data));
+ file_put_contents($f, file_get_contents("data://" . $data));
$o = clone($this);