BUG: Image Component allows upload and selection of video files via drag and drop
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Chrome v126
Reproducible demo link
Describe the bug
How to reproduce the bug?
- Open the demo
- Double-click on any existing image component to open the asset manager.
- Drag and drop a video file into the image upload drop zone.
- Wait for the video file to upload.
- 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
Answers (1)
Thanks @aswinkumar863 for the report. I'll be happy to merge a PR of the fix.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #5268
BUG: autoplay for youtube or vimeo doesn't work
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v115 Reproducible demo link https:/...
Issue #5378
BUG: Uncaught TypeError: Cannot read properties of undefined (reading 'Canvas') while dragging a component in Layer Manager Panel
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v116.0.5845.97 Reproducible demo li...
Issue #5320
BUG: Upload Image or Asset is not triggering on File/Image selection
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v114 Reproducible demo link none De...
Issue #4335
BUG: No way to upload background video component in the editor , Please suggest if there is any way to upload background video
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v9 Reproducible demo link Not there...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.