Issue #507💬 AnsweredOpened November 12, 2017by roytang0 reactions

UploadFile being called twice on drop file?

Quick answerby artf

@roytang I can't reproduce it with the current version https://codesandbox.io/s/p554z8yv7j

Read full answer below ↓

Question

I have an editor initialized as so: If I add an image to the canvas and try to upload a new image by dragging it into the drop area in the modal, the uploadFile function is called twice. Uploading by clicking on the upload area and selecting a file from the windows dialog works fine, it only calls the function once.

Answers (3)

duskhackerNovember 19, 2017

@roytang Explicitly disabling the full-width editor dropzone (dropzone: 0) fixed this for me. Using version 0.12.30

kickbkNovember 23, 2017

Got the same and @roytang's comment is true, disabling dropzone takes care of it. always using the latest version of course.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.