Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use
!isFile()
instead of !(state.file instanceof Blob)
when det…
…ermining if a file has loaded, since in my testing, Edge is presenting a `File` object at this stage, rather than the `Blob` that Chrome etc are presenting (fixes pqina#507). * If `createFileProcessorFunction` is presented with a file object that is not of type `Blob` (such as `File`, as seen in Edge browser), it attempts to iterate over it using `forEach` as if it were an iterable object, however `File` objects do not have a `forEach` method. Resolve this by treating all file object input into this function as though they are a singular, non-iterable object (fixes pqina#507). * Fix comment typo.
- Loading branch information