Hello!

You're right, it worked after I changed it to "required".
But in my form, the file upload is not required so this seems bug to me too.

Maybe I'll check SVN...

br, Marko



enportugal wrote:
> 
> Hi,
> 
> Try setting required to true.
> 
> I was having the same problem (although I wasn't using the .ini file ) and
> setting it to required solved it.
> 
> Seams a little bug...
> 
> Regards,
> 
> 
> Marko Korhonen wrote:
>> 
>> Hi,
>> 
>> Does anyone got this working?
>> 
>> br, Marko
>> 
>> 
>> Marko Korhonen wrote:
>>> 
>>> Hi,
>>> 
>>> I have my form defined in onw ini file.
>>> 
>>> I added following lines to use the new Zend_File component:
>>> 
>>> form.enctype = "multipart/form-data"
>>> 
>>> and:
>>> 
>>> form.elements.picture.type = "file"
>>> form.elements.picture.options.required = false
>>> form.elements.picture.options.destination = "/path/to/my/userspics"
>>> form.elements.picture.options.label = "Picture:"
>>> 
>>> 
>>> database seems to get the correct path to the correct file, but file
>>> does not appear to the
>>> folder I have defined.
>>> 
>>> Any clue what I'm doing wrong?
>>> 
>>> I didn't find any examples using ini file, so I just tried this.
>>> 
>>> br, Marko
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Form_Element_File-with-new-Zend_File-%2B-ini-config-tp19009432p19103408.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to