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

Same images are being provided when trying to upload multiple images #340

Open
prateek3255 opened this issue Jun 2, 2022 · 1 comment
Open

Comments

@prateek3255
Copy link

prateek3255 commented Jun 2, 2022

When trying to upload multiple images the saveImage method returns the first image all the times. Here is a reproducible sandbox with v11.5.0 for it:

https://codesandbox.io/s/react-mde-latest-forked-lzhlxq?file=/src/index.js

To reproduce:

  • Try uploading multiple images in the sandbox above
  • Check the logs, to see the same image is logged for all cases
@andrerpena
Copy link
Owner

Unfortunately. I have almost no time to work on this library and I will be focusing on version 12 now, and it still doesn't support file uploads.

I quickly looked at your problem and it seems that, at least by uploading from the clipboard, the File objects seem to have different sizes. The preview is obviously the same because we are always yielding https://picsum.photos/300

image

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