Hi Joshua,
File uploads can be done pretty easily in symfony 1.2. All you need is
to add the sfWidgetFormInputFile() widget and the sfValidatorFile()
validator to the concerned field in your form.
When you access the value of the field after validating it (through
$form->getValue('field')) this field will actually be an instance of
sfValidatedFile() which offers a method ->save() and information about
the original filename etc.
Read more about that topic in the Forms book:
http://www.symfony-project.org/book/forms/1_2/en/02-Form-Validation#chapter_02_file_upload
Bernhard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---