You can pass a string to a POST request, by setting the body: body = Http.string someStringValue
So if you could convert the binary data into a base64 encoded string you could then pass it as the body of the request. On Sat, Nov 5, 2016 at 9:27 AM, Martin DeMello <[email protected]> wrote: > Thanks, I took a look at that, but it loads the file data into elm, where > we still have the problem that we cannot attach a binary blob to a POST > request. > > I'm not fully sure, but I think the flow needs to be: > 1. Get filename from the input button, in elm. > 2. Pass filename to javascript > 3. Upload the file and attach it to an ajax post request in javascript > 4. Pass the return value of the ajax call back to elm > > martin > > -- > You received this message because you are subscribed to the Google Groups > "Elm Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
