wikimedia/mediawiki-extensions-UploadWizard — pull request #12 by Rillke (2013-08-23 21:53:35+00:00)
Title: Add only Files from filelist for processing

According to bug 46845, Firefox returns filelists containing undefined among File objects after selecting multiple files in certain situations. This can be easily caught and catching these rare occurrences does not cause any harm. String comparison is being used to retain compatibility when involving multiple different DOMs (just in case) instead of the must simpler instanceof File.

I found one other implementation that also checks for the type before processing it:
https://github.com/Widen/fine-uploader/blob/d16737baa3dede3221996fd40b7ddbaac081817a/client/js/uploader.basic.api.js#L109

Nonetheless, clients should only return filelists that consist entirely of file objects:
http://dev.w3.org/2006/webapi/FileAPI/#filelist-section

Bug 46845