Re: File API: File's name property

On Tue, Sep 3, 2013 at 5:31 PM, Arun Ranganathan <arun@mozilla.com> wrote:
> Which in fact is how I think we should do File.name.  We'll stick to DOMString, but think it should specify a conversion to a byte sequence using utf-8.  And, restrict separators such as "/" and "\".

That doesn't solve the problem I mentioned earlier for arbitrary file
names coming out of zip archives. And then your data model is not
bytes, but Unicode scalar values. We could of course accept
information loss of some kind in the conversion process between zip
archive resources and File objects and require developers to keep
track of that if they care.


-- 
http://annevankesteren.nl/

Received on Tuesday, 3 September 2013 16:43:17 UTC