On Sat, 21 Nov 2009, Parijat Kalia wrote:
> Hey guys, I am trying to transmit an image into a web server. So in my
> templates I have:
>
> echo input_file_tag('thefile');
>
> and in my actions:
>
> $image_option1 = $this->getRequestParameter('thefile');
> $this->getRequest()->moveFile('answer_file1',
> sfConfig::get('sf_upload_dir').'/'.$image_option1);
>
> But this is not working, as i get an sfexception stating that moveFile is an
> undefined method. Looks like it is deprecated. So does anyone have a clue
> how this can be fixed?
http://www.symfony-project.org/cookbook/1_0/en/upload
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=.