PricingBlog

Taking Photos

  • _.__._.__.__._-1502963902840045638

    Ethan

    1 month ago

    Hi Everyone,

    A requested feature for my app is to allow users to take a photo of themselves when submitting a form (as proof of id). What would be the best way of doing this in Nordcraft? Currently we publish our app as a PWA. I've tried using the capture="user" attribute on a file <input> However it is shaky at best. It only works on some browsers, and does not reliably open the front facing camera.

    Any experience or advice would be most appreciated.
    1
  • _.__._.__.__._-1503103299065352443

    Ethan

    1 month ago

    Looks like my best bet will be to use MediaDevices: getUserMedia() and some custom actions. I have a working example if anyone is interested and comes across this post later
  • whitep4nth3r-1503270242003193908

    salma

    1 month ago

    There’s also a tutorial for getting a user’s webcam image here using a custom action

    https://discord.com/channels/972416966683926538/1040267068412534785/1491000741047959635
    👍1