re: Elm 0.19 Broke Us 💔 VIEW POST

re: For the MIME type, this is not a problem, you can define your own function like: rawBody : Decode.Value -> Http.Body rawBody value = Http...

Anyway, using a port with readAsDataURL and uploading base64 encoded files is not so bad, are the overhead and server decoding really an issue for you?

Nah. At the time I couldn't find a succinct example with the FileReader stuff. The one I found still used native code and also had a lot of extra abstractions to wade through. So it was quicker to just do what I did. But I'm not married to it. I did find a pretty clear port solution with FileReader that I would use now.

code of conduct - report abuse