[BUG] Disable draggable on preview images to prevent accidental uploads #587

Closed
opened 2026-02-04 21:25:55 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @simon-vajda on GitHub (Jan 15, 2023).

Describe the bug
If you accidentally click on an image and drag it, the web ui will prompt the drag and drop upload screen and it will upload the preview file as a new image.

Task List
This problem can easily be fixed by disabling the draggable option on the preview images. <img src="#" draggable="false">

Please complete the task list below. We need this information to help us reproduce the bug or point out problems in your setup. You are not providing enough info may delay our effort to help you.

  • I have read thoroughly the README setup and installation instructions.
  • I have included my docker-compose file.
  • I have included my redacted .env file.
  • I have included information on my machine, and environment.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the timeline on the web ui
  2. Click on an image preview and drag it
  3. Drop it anywhere and it will upload it

Expected behavior
I think we should not allow accidental uploads like these.

Screenshots
immich_drag_and_drop_bug

System

  • Server Version: 1.41.1
Originally created by @simon-vajda on GitHub (Jan 15, 2023). <!-- Note: Please search to see if an issue already exists for the bug you encountered. --> **Describe the bug** If you accidentally click on an image and drag it, the web ui will prompt the drag and drop upload screen and it will upload the preview file as a new image. **Task List** This problem can easily be fixed by disabling the draggable option on the preview images. `<img src="#" draggable="false">` *Please complete the task list below. We need this information to help us reproduce the bug or point out problems in your setup. You are not providing enough info may delay our effort to help you.* - [x] I have read thoroughly the README setup and installation instructions. - [ ] I have included my `docker-compose` file. - [ ] I have included my redacted `.env` file. - [x] I have included information on my machine, and environment. **To Reproduce** Steps to reproduce the behavior: 1. Go to the timeline on the web ui 2. Click on an image preview and drag it 3. Drop it anywhere and it will upload it **Expected behavior** I think we should not allow accidental uploads like these. **Screenshots** ![immich_drag_and_drop_bug](https://user-images.githubusercontent.com/43452607/212545423-f4fcf797-e28f-48ef-81d9-7e9765a77125.png) **System** - Server Version: `1.41.1`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#587