{
// copy the file into the storage area..
if (!file_exists($file) || !filesize($file)) {
+ $this->err = "File $file did not exist or is 0 size";
return false;
}
empty($_FILES['imageUpload']['name']) ||
empty($_FILES['imageUpload']['type'])
) {
- $this->err = "Missing file details";
+ $this->err = "Missing file details : Error=". empty($_FILES['imageUpload']['error']) ? '?': $_FILES['imageUpload']['error'];
return false;
}
}
- function toRooArray($req = array()) {
- // echo '<PRE>';print_r($req);exit;
+ function toRooArray($req) {
+
$ret= $this->toArray();
static $ff = false;
mkdir($dest, 0775, true);
umask($oldumask);
}
- print_R(file_get_contents($data));exit;
+
file_put_contents($f, file_get_contents("data://" . $data));
$o = clone($this);