uploading file to directory

2009-07-27 Thread Farjad

i found $form-file() method to upload a file but i dont know how to
specify the path to which the file should b uploaded!

i call the method, i specify the path of file to be uploaded then
submit form but dont know where file goes

can anyone help and explain the process of file method and parameters
that it takes.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: uploading file to directory

2009-07-27 Thread brian

Farjad, you should read this:

http://www.php.net/manual/en/features.file-upload.php

The easiest thing to do is to debug($this-data) in your action so you
can see how the array is laid out (and if it's correct).

The file is probably in /tmp and you'll still need to move  save the
file from there.


On Mon, Jul 27, 2009 at 9:02 AM, Farjadhabib.far...@gmail.com wrote:

 i found $form-file() method to upload a file but i dont know how to
 specify the path to which the file should b uploaded!

 i call the method, i specify the path of file to be uploaded then
 submit form but dont know where file goes

 can anyone help and explain the process of file method and parameters
 that it takes.
 


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: uploading file to directory

2009-07-27 Thread Vijay Kumbhar
Hello Farjad,

There is a file uploading component in the cakephp.

Please check the following links,

http://bakery.cakephp.org/articles/view/file-upload-component-w-automagic-model-optional

http://www.reversefolds.com/articles/show/filehandler


On Mon, Jul 27, 2009 at 9:02 PM, brian bally.z...@gmail.com wrote:


 Farjad, you should read this:

 http://www.php.net/manual/en/features.file-upload.php

 The easiest thing to do is to debug($this-data) in your action so you
 can see how the array is laid out (and if it's correct).

 The file is probably in /tmp and you'll still need to move  save the
 file from there.


 On Mon, Jul 27, 2009 at 9:02 AM, Farjadhabib.far...@gmail.com wrote:
 
  i found $form-file() method to upload a file but i dont know how to
  specify the path to which the file should b uploaded!
 
  i call the method, i specify the path of file to be uploaded then
  submit form but dont know where file goes
 
  can anyone help and explain the process of file method and parameters
  that it takes.
  
 

 



-- 
Thanks  Regards,
Vijayk.
Co-founder (www.weboniselab.com)

You Bring the Dreams, We'll Bring the Means

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: uploading file to directory

2009-07-27 Thread Miles J

Or you can test out my robust uploader plugin :]

http://www.milesj.me/resources/script/uploader-plugin
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---