>>
>> On 13/06/2009, at 3:12 AM, gerardroche wrote:
>>
>>> Now if you add a file to upload (i.e. in the above example you attach a
>>> photo to the form for upload) and the name element (i.e. the text
>>> element)
>>> *fails* validation the file is still uploaded to the "images/photos"
>>> folder.
>>>
>> Sounds like you might be moving the uploaded file to images/photos before
>> checking if the submitted form is valid.
>>
>
>Does the validator on the element break the validation chain? Maybe
>that is it. If it doesn't the rest would keep on processing.
>Generally, might be not a bad idea to upload the image and ask the
>user to correct the missing input. :-)
>
>Till

The way I see it, the file should *not* be put in the destination folder
unless *all* of the form elements validate.

-- 
View this message in context: 
http://www.nabble.com/Zend_Form_Element_File--tp23990412p24010079.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to