* Check if the given file is an empty file, which is the result of submitting * an empty ` `. These cause errors when submitting forms * in Safari 11. * * @param {!File} file * @return {boolean}
(file)
| 296 | * @return {boolean} |
| 297 | */ |
| 298 | function isEmptyFile(file) { |
| 299 | return file.name == '' && file.size == 0; |
| 300 | } |