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

Image upload method is causing duplicate images when network is slow #4812

Open
fadymq opened this issue Sep 6, 2024 · 0 comments
Open

Image upload method is causing duplicate images when network is slow #4812

fadymq opened this issue Sep 6, 2024 · 0 comments

Comments

@fadymq
Copy link

fadymq commented Sep 6, 2024

Expected behavior.

When using editor.image.get(), the returned value is the old inserted image and so the editor.image.insert can properly insert an image.

Actual behavior.

When using editor.image.get(), the returned value is null and so the editor.image.insert is causing a duplicate image since its not replacing the old image correctly.

Steps to reproduce the problem.

I have to turn on my network to slow(3g) speeds and then it is possible to replicate. I have calls in the beforeUpload event to take the inserted image, upload to my server, and then insert the newly created server image uri/url.

Editor version.

3.x

OS.

windows 10

Browser.

latest chrome

Recording.
long.network.mp4

Screenshot 2024-09-06 112422

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