[html-formfu] accept attribute?

Carl Franks fireartist at gmail.com
Fri Mar 7 11:50:45 GMT 2008


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.

Carl



More information about the HTML-FormFu mailing list