Bump :) -- Joshua Smith Plinth Laboratories
On Fri, Nov 13, 2015 at 1:30 PM, Josh Smith <[email protected]> wrote: > > On Fri, Nov 13, 2015 at 12:43 PM, Julien Wajsberg <[email protected]> > wrote: > >> >> Le 13/11/2015 18:35, Josh Smith a écrit : >> >> If we want to make the activity really powerful, it could pass a File or >> FileHandle object. This would allow the editor to access file attributes >> and read it properly ( >> https://developer.mozilla.org/docs/Web/API/FileReader). In this case, we >> could omit all other parameters (except possibly readonly). >> >> >> I'm not sure but I think it could already work -- but then all consumers >> would need to follow this behavior. I think it's much easier to just follow >> this simple interface >> > > To follow which interface? > > I worked on a file browser once, and we had to implement code to read > various file types differently. E.g. DOCX files require > reader.readAsArrayBuffer() and HTML files require reader.readAsText(). It > is much easier to allow the editor to handle this. > > -- > Joshua Smith > Plinth Laboratories >
_______________________________________________ dev-fxos mailing list [email protected] https://lists.mozilla.org/listinfo/dev-fxos

