}
-
-
-
+ function beforeInsert($q, $roo)
+ {
+ if (isset($q['_remote_upload'])) {
+ $fn = $this->remoteUpload($roo, $q['_remote_upload']);
+ $this->createFrom($fn);
+
+ $roo->addEvent("ADD", $this, $this->toEventString());
+
+ $r = DB_DataObject::factory($this->tableName());
+ $r->id = $this->id;
+ $roo->loadMap($r);
+ $r->limit(1);
+ $r->find(true);
+ $roo->jok($r->toArray());
+ }
+
+ }
/**
$roo->jerr("IMAGE UPLOAD PERMISSION DENIED");
}
+
+
if (!isset($_FILES['imageUpload'])) {
return; // standard update...
}