Re: [elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-05-07 Thread Zachary Kessin
I had a use in my old job where I had to upload a CSV file to a server for parsing etc. Pretty simple really, I used some package someone did with some native code. Zach ᐧ On Fri, May 5, 2017 at 11:13 PM, Kasey Speakman wrote: > *Uploading files to AWS S3* > > That's my

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-05-05 Thread Kasey Speakman
*Uploading files to AWS S3* That's my only use case so far for binary-type APIs of JS. I first call my own API to get a signed upload link, then PUT a file at that link. My simple way to upload files using Elm's Http module can be found here

Re: [elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-04-09 Thread art yerkes
Clients usually don't need to validate tokens. I'm doing something a little special. Still, it's a pain. On Sun, Apr 9, 2017 at 8:55 AM, 'Rupert Smith' via Elm Discuss < elm-discuss@googlegroups.com> wrote: > On Sunday, April 9, 2017 at 2:59:26 PM UTC+1, art yerkes wrote: >> >> Since this

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-04-09 Thread 'Rupert Smith' via Elm Discuss
On Sunday, April 9, 2017 at 2:59:26 PM UTC+1, art yerkes wrote: > > Since this thread has risen from the grave completely, handling JWT > validation is kind of gross in elm. > > https://gist.github.com/prozacchiwawa/d51b4e49e59a2aa0d3a28b328f62627d > > Note that this requires a version of

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-04-09 Thread art yerkes
Since this thread has risen from the grave completely, handling JWT validation is kind of gross in elm. https://gist.github.com/prozacchiwawa/d51b4e49e59a2aa0d3a28b328f62627d Note that this requires a version of billstclair's sha256 that disables internal utf-8 handling (if there's demand,

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-04-08 Thread Will Clardy
I have a small hobby project that uses File and TypedArray to read and parse NES rom files, display their CHR data, and print interesting information from the iNES headers. I'd love to rewrite what I have in Elm and

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-04-01 Thread Wojtek Piekutowski
It would be awesome to be able to do directly in Elm: - consume/emit msgpack - use File* APIs - direct upload to S3 On Thursday, 28 July 2016 23:17:51 UTC+2, Daniel Bachler wrote: > > I'd love to see support for the File and ArrayBuffer Apis, and maybe > TypedArrays/DataViews as well. IMHO they

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-03-30 Thread Simon
My company uses websockets for mobile apps and thus wants to save on bandwidth. As a result all websocket traffic is encoded using msgpack, but the current library cannot handle that - presumably because of Elm's lack of underlying support for binary data. On Thursday, 28 July 2016 23:17:51

Re: [elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-01-15 Thread Zachary Kessin
I have an app I am working on that has to upload a file to a server for server side processing Zach ᐧ On Wed, Jan 11, 2017 at 10:49 AM, Simon wrote: > Hi all, > thought it might be worth updating this thread on my progress with S3, > which I have now solved by adding one

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-01-11 Thread Simon
Hi all, thought it might be worth updating this thread on my progress with S3, which I have now solved by adding one small hack to the Filereader library (github only because of the native code). I have documented this at

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2016-08-24 Thread Erik Lott
Our primary application allows photographers to upload hundreds/thousands of images for portfolio display. image delivery, etc. I guess you could say that our app is generally driven by image uploads. I would love to see this functionality provided by Elm, rather than having to use ports... On

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2016-08-15 Thread Daniel Bachler
Thank you Simon for the example, this is great! I created a new thread <`https://groups.google.com/forum/#!topic/elm-discuss/fVFXqEHpxAQ> to collect design ideas. Could you create a gist and post the link there? On Wednesday, August 10, 2016 at 6:24:49 PM UTC+2, Simon wrote: > > I think this is

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2016-08-10 Thread Simon
I think this is the sort of code I would like to be able to write to do signed S3 uploads FileReader API readFile : FileRef -> Task Error Blob and in the Http library blobData : Blob -> Http.Data such that get ("signature" := string) "/get_signature" `Task.andThen` \sig ->

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2016-07-30 Thread Jan Weitz
I would like Binary decoders/encoders as John Watson mentioned, as well. - Encoding/Decoding MQTT messages (which itself might contain Protobuf messages) [ http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718013] - Encoding/Decoding Protobuf3 binary messages [

Re: [elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2016-07-29 Thread Peter Damoc
I need to upload user avatar image and company logo. :) On Fri, Jul 29, 2016 at 11:54 AM, Michael B wrote: > ..and it's for an audio programming language, so the ability to read and > write binary data would be fantastic. > > -- > You received this message because you are

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2016-07-29 Thread Michael B
..and it's for an audio programming language, so the ability to read and write binary data would be fantastic. -- 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

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2016-07-29 Thread Michael B
I'm making a browser based IDE, so support for the FileReader API is essential for opening local files. -- 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

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2016-07-29 Thread John Watson
Hi, Daniel, thanks for starting this off. One thing I'd like to add: *Binary Base64 decoders.* These could obviously be for any binary resource that is smuggled into elm as text. In my case I need to reconstitute soundfonts that are available as base64 encoded resources embedded in JSON.