I am using StofDoctrineExtensionsBundle for uploader Files with symfony2. When uploading a picture i have a error :
ContextErrorException: Notice: Undefined variable: size in /home/../AdsBundle/Entity/Fileupload.php line 135
src/../Controller/AdminUploaderController.php
public function uploadtestAction() { $f = new Fileupload(); $f->setName("why_use_linux.png"); $f->setPath("/home/ismail/Images/"); $f->setSize(1992894);... }
src/../Entity/Fileupload.php
/** * Set mimeType * * @param string $mimeType * @return Fileupload */ public function setMimeType() { $this->mineType = $mineType; return $this; }
Is there any proposition to solve this problem?
Thanks,