[html-formfu] accept attribute?

Alex Povolotsky tarkhil at over.ru
Fri Mar 7 12:05:59 GMT 2008


Carl Franks wrote:
> On 07/03/2008, Alex Povolotsky <tarkhil at over.ru> wrote:
>   
>> Hello!
>>
>>  I'm trying to make a form for uploading photos; as far as I've
>>  understood HTML 4.01 reference, I'd do good adding "accept=image/jpg" to
>>  input field; however, adding accept: image/jpg to .yml file yields an error.
>>     
>
> At a guess, do you need to quote the string?
>
>     - type: File
>       name: foo
>       attrs:
>         accept: 'image/jpg'
>
> If not, post what you've tried.
>   
Thanks, I've got it myself. Quoting is not necessary. Works fine.

Alex.



More information about the HTML-FormFu mailing list