Don't just throw an exception as now... accept more types, or at least notify more cleanly that the file isn't accepted.
Don't just throw an exception as now... accept more types, or at least notify more cleanly that the file isn't accepted.