Skip to content

Drag-and-drop images from Windows Explorer blocked #344

Description

@Ricotta12345

Describe the bug

When trying to drag and drop image file from local folder in Windows Explorer to image area in Generate tab, block sign (reg circle with diagonal line) appears when cover file above image area, nothing happens when drops. Open file dialog by click works as usual.
Dev console don't show any messages during the whole drag-n-drop process.
If I manually replace event listeners for 'dragover' and 'drop' events with "preventDefault()" via dev console, then block sign is disappears.
Similar bug was described in #19 #19 and marked as fixed, but I Guthub don't allow me to reopen it, also my issue looks as different bug (because even no dropped image in the slot shows and block sign presented).

Steps to reproduce

  1. Open Modly with by launch.bat without admin privileges.
  2. Open any workflow with "Image" node.
  3. Open Generation tab and select this workflow.
  4. Open Windows Explorer.
  5. Drag image file by mouse (LMB hold) from local folder to image area in Generate tab.
  6. Drop image in the image area (release LMB).
  7. Open dev console by Ctrl+Shift+I
  8. Enter window.addEventListener('dragover', e => e.preventDefault()); in console
  9. Enter window.addEventListener('drop', e => e.preventDefault()); in console
  10. Repeat steps 5 and 6, see the difference (no block sign anymore)

Modly version

0.4.2

Operating system

Windows 10 21H2

Screenshots & logs

Image

Confirmation

  • I have searched existing issues and this has not been reported yet.
  • I can reproduce this on the latest version of Modly.

Activity

  1. Yi-111-a commented on Sep 25, 2026

    @Yi-111-a
    Contributor

    /assign

  2. github-actions commented on Sep 25, 2026

    @github-actions

    ✅ Assigned to @Yi-111-a. Comment /unassign if you can no longer work on this. Open a PR that includes Closes #344 in its description when you're ready for review.

  3. Lorchie commented on Oct 9, 2026

    @Lorchie
    Collaborator

    This should be fixed in v0.4.3: the image area in the Generate panel now handles dragover and drop, so dropping a file from Windows Explorer loads it. cc @Yi-111-a, since you'd self-assigned this issue: it's already handled, sorry for the overlap.

    If the block cursor still appears with v0.4.3, feel free to reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions