W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

[FileAPI] File.mediaType

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 10 Nov 2009 17:33:17 -0800
To: "WebApps WG" <public-webapps@w3.org>
Message-ID: <op.u26tlrxc64w2qv@annevk-t60>
This should be a bit more exact as to how the mediaType is returned. I  
would prefer ASCII-lowercase. Returning "application/octet-stream" rather  
than null also seems better if the type is not known. That way you do not  
have to type check. Other parts of the platform also handle  
"application/octet-stream" as unknown.

Also, maybe we should just call this type? File.type seems unambiguous  
enough.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 10 November 2009 16:33:58 GMT

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