}
}
-// $this->filesize = filesize($file);
$this->created = date('Y-m-d H:i:s');
if (!$this->id) {
file_put_contents($f, file_get_contents("data://" . $data));
+ $o = clone($this);
+
+ $this->filesize = filesize($f);
+
+ $this->update($o);
+
return true;
}