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

Is this file input compatible with IE11? #24

Open
kkorus opened this issue Nov 7, 2018 · 1 comment
Open

Is this file input compatible with IE11? #24

kkorus opened this issue Nov 7, 2018 · 1 comment

Comments

@kkorus
Copy link

kkorus commented Nov 7, 2018

Hi, I'm trying to use this component with IE11, but I'm getting this error while file is uploaded:
It works on Chrome.

image

EDIT:
Here they say that FileReader.readAsBinaryString has been deprecated.
https://stackoverflow.com/a/47049347/1210819

@kkorus
Copy link
Author

kkorus commented Nov 7, 2018

I have imported file upload component into project and modified line:

                        switch (readAs) {
                            case 'binary': {
                                reader.readAsText(file);
                                break;
                            }

And it works on IE11

Other option is to use:
<FileReaderInput as="text" id="my-file-input"....

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