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

readAsBinaryString issue in ie 11 #162

Closed
vickykrbu opened this issue Aug 22, 2016 · 1 comment
Closed

readAsBinaryString issue in ie 11 #162

vickykrbu opened this issue Aug 22, 2016 · 1 comment

Comments

@vickykrbu
Copy link

Hi All,

I am using jquery.filedrop.js file to drag and drop file for uploading in mvc. It is working fine in Firefox and chrome but when i used the same in IE 11 getting issue in FileReader.readAsBinaryString line. I did some googled and got to know that IE 11 is not supporting this method. I have also gone with this link and used arraybuffer instead of binarystring this is working fine with IE 11 but when i open the file getting "This file format is different".
below is my bunch of code of filedrop.js where i changed from binarystring to arraybuffer.
` if (beforeEach(files[fileIndex]) != false) {
if (fileIndex === files_count) return;
var reader = new FileReader(),
max_file_size = 1048576 * opts.maxfilesize;

                reader.index = fileIndex;
                var filesSize = files[fileIndex].size;
                debugger;
                reader.onloadend = send;
                reader.readAsArrayBuffer(files[fileIndex]);//  reader.readAsBinaryString(files[fileIndex]);
              } else {
                filesRejected++;
              }`

Please help me to make this code works in IE also.

@jayarjo
Copy link
Contributor

jayarjo commented Aug 22, 2016

In mOxie we emulate readAsBinaryString. But this project is not related to jquery.filedrop.js. Sorry. You better file this issue on their tracker.

@jayarjo jayarjo closed this as completed Aug 22, 2016
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

2 participants