سؤال

I am testing three different browsers, chrome, firefox and safari.

if (window.File && window.FileReader && window.FileList && window.Blob)
{
       //check whether browser fully supports all File API 
}

It returns true for chrome and firefox.. but it does not return true for safari.

Does safari support File API?

هل كانت مفيدة؟

المحلول

According to caniuse.com, yes it supports, but be careful about previous versions.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top