>
>
> <p>Hi.</p>
> <p>I'm tryng to get a file uploaded by Zend_File_Transfer </p>
> <p>to make a thumb but it doesn't work</p>
> <pre>
> if ($form->file_image->isUploaded()) {
> $extra['file_image'] =
> $this->_getFileName($form->file_image);
> if($form->file_image->isReceived()){exit();
> $thumb= new
> W_Gd_ImageResize($form->file_image->getDestination().'/'.$extra['file_image']);
>
> if(!$thumb->create(self::ICO_WIDTH,self::ICO_WIDTH,BASE_PATH.'/thumbs/'.$extra['file_image'])){
> //Unknown File Error
> }
> }
> </pre>
> <p>The flow code never enter in</p>
> <p>if($form->file_image->isReceived())</p>
> <p>if I get rid of it I get an error from W_Gd_ImageResize
> file not found.</p>
> <p>The script work fine (the file is uploaded) but I think
> it isn't physically on the server yet.</p>
>
> <p>So I don't know which way to turn.</p>
>
> <p>Can you help me, please ?</p>
>
> <p>Bye.</p>
>
<p>EDIT</p>
<p>I worked out with </p>
<p> $form->file_image->receive()<p>
<p>It should be highlighted in the reference (imho)</p>
--
View this message in context: http://www.nabble.com/Zend_File_Transfer-how-to-create-a-thumb-run-time---tp24393230p24393276.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论