I'm sorry if my question is too silly but I spent more than half of my
day just trying to search every documentation around to solve this
case.

I have many images in my form1, and the admin form is inherited from
this form1..

so I need to do resizing for every image file

I have in the same form1 , 3 upload files images and 1 pdf file.

I tried both:

'validated_file_class' => 'imgHandling'


class imgHandling extends sfValidatedFile
{
    public function genThumbnail()
    {
        $fileNameNew = 'testTHUMB.jpg';
        $thumbnail = new sfThumbnail(100, 100);
        $thumbnail->loadFile($this->getTempName());
        $thumbnail->save('$fileNameNew', 'image/png');
   }

}


But I can't find a way to call this method! genThumbnail
I can't simply right imgHandling::genThumbnail

------------------
second attempt was to add the imgHandling to the action
processformAction
but I didn't know how to use getFiles to get the file to handle with
img handling .. I need it to detect each file


$request->getFiles($form->getName())


need something like
string logoName = getFiles['logo_img']['name'] //to gen new name
string logoFile = getFiles['logo_img']['file'] //to handle file

string mapName = ....
string mapFile = ...



how to use this getFiles :(

--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to