Is there a chance to use App_Browsers to detect support of the HTML5 File API?
问题 Using the HTML5 File API to upload files, I am currently using some hardcoded checking of the browsers that support them, depending on the user agent string: internal bool IsHtml5FileUploadCapable { get { var browser = Request.Browser; var n = browser.Browser.ToLowerInvariant(); var major = browser.MajorVersion; var minor = browser.MinorVersion; return n.Contains(@"chrome") && major >= 6 || n.Contains(@"ie") && major >= 10 || n.Contains(@"firefox") && (major >= 3 && minor > 6 || major >= 4) |