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

Weird behaviour in IE with accept='text/*' #256

Closed
andschdk opened this issue Oct 17, 2016 · 7 comments
Closed

Weird behaviour in IE with accept='text/*' #256

andschdk opened this issue Oct 17, 2016 · 7 comments

Comments

@andschdk
Copy link

I'm using this component for CSV upload. It works well in all decent browsers.
When trying it out in IE11 or EDGE this happens:

  1. click to select file
  2. nothing happens
  3. click to select file again -> triggers the onDrop callback with no file.

Only way i manage to makes things work is to omit the accept prop.

@ganapativs
Copy link

+1

@okonet
Copy link
Collaborator

okonet commented Nov 9, 2016

Is this related to the browser? Can you try reproduce it without this module and react?

@okonet
Copy link
Collaborator

okonet commented Nov 9, 2016

Is this related to #241?

@andschdk
Copy link
Author

andschdk commented Nov 9, 2016

I guess it could be related but not sure.

Found a pen and quickly modified it to use accept="text/csv".
Check it out here: http://codepen.io/anon/pen/NbGvMw (no react, no dropzone)

In IE text/csv does not force you to choose a CSV file. I guess it isn't a valid MIME type. It is supported in decent browsers though.

It looks like it is something with this module 😕

@okonet
Copy link
Collaborator

okonet commented Nov 10, 2016

How can this be related to this module? We don't do anything fancy with the prop just setting it on the input element.

@nakamorichi
Copy link

It's a platform issue. Same problem with Firefox and Chrome on Windows. react-dropbox needs to do some corrections to the file types provided by browser. Related to #276

@abury
Copy link

abury commented Feb 14, 2017

I'm getting this as well. It's happening with every browser on Windows when trying to select a CSV file.
Removing the accept prop fixed the issue

@okonet okonet closed this as completed Jun 21, 2017
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

5 participants