Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File module? #136

Open
chadselph opened this issue Aug 16, 2020 · 0 comments
Open

File module? #136

chadselph opened this issue Aug 16, 2020 · 0 comments

Comments

@chadselph
Copy link

chadselph commented Aug 16, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant