I would find it useful to add a FileApi check to the Ext.supports object for convenience.
Currently I use this in my code as an "override":
PHP Code:
/**
* @property FileApi True if Browser supports File API specification
* Tests for objects specific to the File API W3C specification without
* being redundant (don't bother testing for Blob since it is assumed
* to be the File object's prototype.
*
* Will fail in Safari 5 due to its lack of support for the standards
* defined FileReader object
*/
Ext.apply(Ext.supports, {FileApi: !!(window.File && window.FileList && window.FileReader)});
If this is interesting it would be enough to add the following to the core code of Ext.supports:
PHP Code:
/**
* @property FileApi True if Browser supports File API specification
* Tests for objects specific to the File API W3C specification without
* being redundant (don't bother testing for Blob since it is assumed
* to be the File object's prototype.
*
* Will fail in Safari 5 due to its lack of support for the standards
* defined FileReader object
*/
FileApi: !!(window.File && window.FileList && window.FileReader),