When I receive file drops in a Browser, I get a FileList object. What's the purpose of this type? As far as I can see, it is nearly the same as a Typescript File[]
or a good old JavaScript array of file objects.
From what I could find, FileList is inferior since you cannot iterate over values or indices using one of
for (let file of files) {
// read file
}
for (let index in files) {
// read files[index]
}
I also don't see a history reason, since Array of File should have been around at least as long as FileList.
Am I missing something here?