File api

Ehsan Akhgari ehsan.akhgari at gmail.com
Thu Aug 28 16:32:49 UTC 2014


We are working on a sandboxed file system API as well <
http://w3c.github.io/filesystem-api/Overview.html> but that effort is still
in its infancy.  Stay tuned!


On Thu, Aug 28, 2014 at 12:23 PM, Mikko Levanto <mikko.levanto at iki.fi>
wrote:

> I also need a way to write file. An api that supports both reading and
> writing would be better, as using different interfaces tends to make
> coding
> messy.
>
> Mikko
>
> Ehsan Akhgari kirjoitti:
> > Reading a file that the user picks through an input type=file or by drag
> > and drop is already possible through the FileReader API: <
> > https://developer.mozilla.org/en-US/docs/Web/API/FileReader>
> >
> > Does that help you?
> >
> >
> > On Wed, Aug 27, 2014 at 12:17 PM, Mikko Levanto <mikko.levanto at iki.fi>
> > wrote:
> >
> >> Hello !
> >>
> >> One feature is either missing or poorly defined in web browsers: local
> >> files.
> >> Javascript applications should be able to read and write local files.
> >> However,
> >> they should not be able to damage user's file space, nor spy it.
> >>
> >> The security requirements are similar those of file upload and download
> >> facilities, so it would be reasonable to have similar (from user's point
> >> of
> >> view) interfaces for file input and output for javascript applications.
> >> The HTML/Javascript api should give an event with an opened file.
> >>
> >> Security requires that applications cannot access user's files by name.
> >>
> >> I'm going to develope an application where reading and writing files is
> >> essential, preferable with a browser that is also safe for other use.
> >>
> >> Mikko
> >>
> >>
> >>
> >> _______________________________________________
> >> firefox-dev mailing list
> >> firefox-dev at mozilla.org
> >> https://mail.mozilla.org/listinfo/firefox-dev
> >>
> >
> >
> >
> > --
> > Ehsan
> >
>
>
>


-- 
Ehsan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/firefox-dev/attachments/20140828/5ad9c4a6/attachment.html>


More information about the firefox-dev mailing list