switch from deprecated FileError to the new DOMError