This is the code from this article by Michael R. Bernstein
A running example can be found here.
Use elm reactor
in the root of this repo:
elm reactor
And then visit localhost:8000
and click on index.html
.
This repo is based heavily on the code here:
- "Using ports to deal with files in Elm 0.18" https://www.paramander.com/blog/using-ports-to-deal-with-files-in-elm-0-17
- GitHub Repo: https://github.com/phylor/elm-image-upload