[BUG] Copy image button in navbar doesn't work #460

Closed
opened 2026-02-04 20:36:29 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @JVT038 on GitHub (Dec 3, 2022).

Describe the bug
When clicking the copy image button on the navbar, it doesn't work.
The following error appears in the console log:

Uncaught (in promise) ReferenceError: ClipboardItem is not defined
    Immutable 45
index-581660b7.js:1:1230
    u Immutable
    AsyncFunctionThrow self-hosted:811
    Immutable 2
    forEach self-hosted:203
    Immutable 22
    InterpretGeneratorResume self-hosted:1819
    AsyncFunctionNext self-hosted:807
    Immutable 4
    forEach self-hosted:203
    Immutable 3

Task List

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 an image in Immich through the browser
  2. Click on 'copy image' button
  3. See error in console log

Expected behavior
I expected the image to be copied to my clipboard

System

  • Phone OS [iOS, Android]: Android 12
  • Server Version: v1.37.0
  • Mobile App Version: v1.36.1
Originally created by @JVT038 on GitHub (Dec 3, 2022). **Describe the bug** When clicking the copy image button on the navbar, it doesn't work. The following error appears in the console log: ``` Uncaught (in promise) ReferenceError: ClipboardItem is not defined Immutable 45 index-581660b7.js:1:1230 u Immutable AsyncFunctionThrow self-hosted:811 Immutable 2 forEach self-hosted:203 Immutable 22 InterpretGeneratorResume self-hosted:1819 AsyncFunctionNext self-hosted:807 Immutable 4 forEach self-hosted:203 Immutable 3 ``` **Task List** *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 an image in Immich through the browser 2. Click on 'copy image' button 3. See error in console log **Expected behavior** I expected the image to be copied to my clipboard **System** - Phone OS [iOS, Android]: `Android 12` - Server Version: `v1.37.0` - Mobile App Version: `v1.36.1`
Author
Owner

@bo0tzz commented on GitHub (Dec 3, 2022):

Which browser/browser version are you using?

@bo0tzz commented on GitHub (Dec 3, 2022): Which browser/browser version are you using?
Author
Owner

@alextran1502 commented on GitHub (Dec 3, 2022):

@JVT038 Do you use this feature while accessing your instance on http or https?

@alextran1502 commented on GitHub (Dec 3, 2022): @JVT038 Do you use this feature while accessing your instance on http or https?
Author
Owner

@JVT038 commented on GitHub (Dec 3, 2022):

Firefox 107.0.1

@JVT038 commented on GitHub (Dec 3, 2022): Firefox 107.0.1
Author
Owner

@JVT038 commented on GitHub (Dec 3, 2022):

@JVT038 Do you use this feature while accessing your instance on http or https?

HTTPS, reverse proxy with NGINX proxy manager

@JVT038 commented on GitHub (Dec 3, 2022): > @JVT038 Do you use this feature while accessing your instance on http or https? HTTPS, reverse proxy with NGINX proxy manager
Author
Owner

@bo0tzz commented on GitHub (Dec 3, 2022):

Firefox doesn't support copying images to the clipboard by default - you'll need to change a setting for it to work. See https://github.com/LuanEdCosta/copy-image-clipboard#enable-clipboard-api-features-in-firefox

@bo0tzz commented on GitHub (Dec 3, 2022): Firefox doesn't support copying images to the clipboard by default - you'll need to change a setting for it to work. See https://github.com/LuanEdCosta/copy-image-clipboard#enable-clipboard-api-features-in-firefox
Author
Owner

@JVT038 commented on GitHub (Dec 3, 2022):

Thanks, it works now!

@JVT038 commented on GitHub (Dec 3, 2022): Thanks, it works now!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#460