DOM to FileInfo accessibility handling and refactoring