Skip to content

File module? #136

Description

@chadselph

It seems like there's no port of Elm's File module. I tried to get around this with

          input'(
            [type'("file"), onChange(s => GotFile(s))],
            [text("ok")],
          )

but the callback just uses .value which is just a string of a (fake) file path. I'm sure I could use on("change"... but I couldn't figure out how to write the JSON decode I needed to get the event into a javascript File.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions