function isTooBig(file, maxFileSize) {
  const fileSize = file.size / 1024 / 1024 // in MB

  return fileSize > maxFileSize
}
// check file size in bytes against a max size in MB
check file size in bytes against a max size in MB
check file size in bytes against a max size in MB
function isTooBig(file, maxFileSize) {
  const fileSize = file.size / 1024 / 1024 
  return fileSize > maxFileSize
}
function isTooBig ( file , maxFileSize ) { const fileSize = file . size / 1024 / 1024 return fileSize > maxFileSize }
check file size in bytes against a max size in MB
check file size in bytes against a max size in MB
// in MB