W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

[FileAPI] FileWriter and read-only files

From: Glenn Maynard <glenn@zewt.org>
Date: Mon, 11 Apr 2011 15:16:56 -0400
Message-ID: <BANLkTim8PwaF0Rn4LyoNVFgTy9Ushece7g@mail.gmail.com>
To: public-webapps@w3.org
File objects should have a "readOnly" property, indicating whether write
permission is granted by the user.  Files returned from <input> elements
should, by default, set it.  Constructing a FileWriter using a File with its
readOnly property set should throw an exception.

Later, it would be good to also have an attribute on <input> to allow
opening files for write.  For example, <input type=file file=write> to ask
for write permission (setting readOnly if only read permission was granted,
eg. with an "open read-only" checkbox), and <input type=file file=create> to
also ask the browser to show a "Save As" dialog instead of an "Open" dialog.

-- 
Glenn Maynard
Received on Monday, 11 April 2011 19:17:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:44 GMT