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

BUG: Image Component allows upload and selection of video files via drag and drop #6032

Open
2 tasks done
aswinkumar863 opened this issue Aug 3, 2024 · 1 comment
Open
2 tasks done

Comments

@aswinkumar863
Copy link
Contributor

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Chrome v126

Reproducible demo link

https://grapesjs.com/demo

Describe the bug

How to reproduce the bug?

  1. Open the demo
  2. Double-click on any existing image component to open the asset manager.
  3. Drag and drop a video file into the image upload drop zone.
  4. Wait for the video file to upload.
  5. Click on the uploaded video asset to select it.

Note: This issue only occurs with the drag and drop. Video component also affected by this issue.

What is the expected behavior?
The Image component should prevent the selection of incorrect file types. It would be better if the asset manager blocks the uploading of incorrect file types as the first step.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@artf
Copy link
Member

artf commented Aug 4, 2024

Thanks @aswinkumar863 for the report. I'll be happy to merge a PR of the fix.

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