check if browser supports file api and filereader features
//check if browser supports file api and filereader features if (window.File && window.FileReader && window.FileList && window.Blob) {}