Code Monkey home page Code Monkey logo

Comments (3)

bkniffler avatar bkniffler commented on June 25, 2024

Strange, I'm not able to reproduce this. Could you provide an error message or something, that would make it more easy to take care of it!

from draft-wysiwyg.

antherkiv avatar antherkiv commented on June 25, 2024

captura de pantalla 2016-06-03 a la s 11 51 15 a m
I found the problem for some reason when the code it's precompiled fails:

draft-js-plugins-dnd-plugin onDropFile onDropInnerFile function,
this piece of code it's the problem:

var data = { files: [], formData: formData };
for (var key in files) {
if (files[key]) {
data.formData.append('files', files[key]);
data.files.push(files[key]);
}

(The example doesn't fails because of that).

Then the function getIndexBy it's attached with files and when the flow it's on readFiles ( because it's not a file readFile function fails and the promise never resolve).

I'm sorry I don't have too much free time.

from draft-wysiwyg.

bkniffler avatar bkniffler commented on June 25, 2024

Sorry for the extended abscence. I see the problem now, though I still wasn't able to reproduce it. I've added a check:

if (files[key] && files[key] instanceof File)

This should fix the problem for you, but I'm not sure why it gets called 2 times in the first place.

I'm closing this, but if you still got an issue with that, feel free to re-open it!

from draft-wysiwyg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.