Thursday, August 30, 2012

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

example

https://github.com/iwat/twdemo/blob/master/Controller/DemoController.php

in  DemoController and view 

good luck

2012/8/30 Prarinthon Ajinajarn <prarinthon.aj@gmail.com>
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.
 
 



--
Sincerely  

Noom .  086 688 5686

--
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: