Issue #6032Opened August 3, 2024by aswinkumar8630 reactions

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

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

Answers (1)

artfAugust 4, 20240 reactions

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.

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.