2009年7月8日星期三

[fw-mvc] Zend_File_Transfer how to create a thumb run time ?

Hi.
<p>Hi.</p>
<p>I'm tryng to get a file uploaded by Zend_File_Transfer </p><p></p><p></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>
The flow code never enter in
if($form->file_image->isReceived())
if I get rid of it I get an error from W_Gd_ImageResize
file not found.
The script work fine (the file is uploaded) but I think
it isn't physically on the server yet.

So I don't know which way to turn.

Can you help me, please ?

Bye.
--
View this message in context: http://www.nabble.com/Zend_File_Transfer-how-to-create-a-thumb-run-time---tp24393230p24393230.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: