The W3C `FileList` object has no `map` method, thus it needs to be converted to an array before using.