...
 
Commits (2)
......@@ -20,7 +20,7 @@ class Image implements AssetsInterface
public function upload(array $media, array $data)
{
$filename = "/image/{$this->entity->batch_guid}/{$this->entity->guid}/master.jpg";
$filename = "image/{$this->entity->batch_guid}/{$this->entity->guid}/master.jpg";
// @note: legacy file handling
$file = new \ElggFile();
......
......@@ -320,4 +320,11 @@ class ElggFile extends ElggObject {
return $this->filestore;
}
/**
* Executed prior to object serialization
*/
public function __sleep()
{
unset($this->handle);
}
}