Wednesday, August 29, 2012

How do I upload image file to server by saving path file not BLOB?

I try to googling but I only find upload file by saving in BLOB type
but i want to saving path file i dont know how
now i can do upload view.ctp to browse file img
but i dont know how to save file path
upload.ctp
<?php
 echo $this->Form->create('File', array('type' => 'file'));
echo $this->Form->input('fileName', array('type' => 'file'));
echo $this->Form->end('Upload');
?>
but i cannot get file path in controller
thanks for helping

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

No comments: