May DT can use HTML5 Camera API

May DT can use HTML5 Camera API

ClarenceClarence Posts: 19Questions: 7Answers: 0

Can I use the html5 camera api at the input?

Answers

  • allanallan Posts: 63,457Questions: 1Answers: 10,466 Site admin

    Do you mean as an Editor input field? Yes, that should be perfectly possible:

    {
      name: ...,
      label: ...,
      attr: {
        type: 'file',
        accept: 'image/*',
        capture: 'camera'
      }
    }
    

    That's going to be fairly basic and you might want to write a file type plug-in which will show the input on a canvas etc, but that will hopefully get you going.

    Allan

  • stevencmonstevencmon Posts: 25Questions: 9Answers: 2

    Any chance that there is an example to emulate MultiUpload? ;)

  • allanallan Posts: 63,457Questions: 1Answers: 10,466 Site admin

    Does the input type="camera" input allow for multiple uploads? It isn't something I've looked into I'm afraid.

    Allan

This discussion has been closed.