EmbeddedChat icon indicating copy to clipboard operation
EmbeddedChat copied to clipboard

Allow users to paste images from clipboard

Open thepiyush-303 opened this issue 1 year ago • 5 comments

Brief Title

Acceptance Criteria fulfillment

  • [ ] allow users to paste images.

Fixes #947

Video/Screenshots

Screencast from 2025-02-02 11-32-43.webm

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-948 after approval. Contributors are requested to replace <pr_number> with the actual PR number.

thepiyush-303 avatar Feb 02 '25 06:02 thepiyush-303

Hi @thepiyush-303 Why only images, can we make it generic ?

Spiral-Memory avatar Feb 02 '25 09:02 Spiral-Memory

Hey @Spiral-Memory you mean pasting files also?

thepiyush-303 avatar Feb 02 '25 09:02 thepiyush-303

Yeah, anything

Image, Files Videos

Spiral-Memory avatar Feb 02 '25 09:02 Spiral-Memory

I think every browser do not support copying files, videos, for e.g i am using firefox and it does not support copying files.

thepiyush-303 avatar Feb 02 '25 09:02 thepiyush-303

Okay, so only images will be possible 🤔

Cool, then, Can you optimize this code, looks there there are many manual checks, can we do better ?

Spiral-Memory avatar Feb 02 '25 09:02 Spiral-Memory