Issue #6032๐Ÿ’ฌ AnsweredOpened Aug 3, 2024by aswinkumar8630 reactions

Image Component allows upload and selection of video files via drag and drop

Quick answerby artf

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

Read full answer below โ†“

Question

GrapesJS version [X] 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?Open the demoDouble-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 select...

Answers (2)

artfโ€ข Aug 4, 2024

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

GJS Helperโ€ข May 17, 2026

The issue you've reported, where the GrapesJS Image component allows video files to be uploaded and selected via drag and drop, is a common scenario when the default asset manager's drag-and-drop handler doesn't explicitly enforce file type restrictions. While the native HTML input type="file" elem...

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

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins โ†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features โ€” save days of integration work.

Browse premium plugins โ†’

Related tutorials

In-depth guides on the same topic.

All tutorials โ†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.