Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in IE11 when dropping files #1099

Closed
elektromodulator opened this issue Oct 4, 2017 · 0 comments
Closed

Exception in IE11 when dropping files #1099

elektromodulator opened this issue Oct 4, 2017 · 0 comments

Comments

@elektromodulator
Copy link

elektromodulator commented Oct 4, 2017

There is an exception "Object doesn't support property or method 'forEach'" in IE 11 when drag-and-dropping files to the file upload from File Explorer in Windows.
Version of fileinput: 4.4.5 (Nuget)
My HTML:

<div class="file-loading">
    <input id="id1" type="file" multiple>
</div>

Initialization:

document.addEventListener("DOMContentLoaded", function() {
        var fileInputElement = $("#id1");
        fileInputElement.fileinput({
            uploadUrl: "/upload",
            deleteUrl: "/delete",
            uploadAsync: false,
            showUpload: false, // hide upload button
            showRemove: false // hide remove button
        });
    });

Exception:
image

I think the problem is that forEach is not supported for typed arrays in IE11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant