Hello,
One thing, the name of your validation .yml file must be the name of
the action that is executed. For instance, when I upload a file, in
actions.class.php, I see that the action that is executed is upload
(public function executeUpload). So my validation file is called
upload.yml. Since code becomes poorly formatted in google groups, here
is that code for upload.yml in this thread.
http://www.symfony-project.org/forum/index.php/m/47945/#msg_47945
As for getting the filesize, try this $this->getRequest()-
>getFileSize('file');
You could shove the value into a variable and echo it out to see if it
is working?
I use sfMediaLibrary for file management, BTW, but I think the
situation is the same.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---