File api

Mikko Levanto mikko.levanto at iki.fi
Thu Aug 28 16:23:29 UTC 2014


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
>





More information about the firefox-dev mailing list