Navigator.clipboard.read() and image data

The read() method of the Clipboard interface requests a copy of the clipboard’s contents, delivering the data to the returned Promise when the promise is resolved. Unlike readText(), the read() method can return arbitrary data, such as images. This method can also return text.

Read data from clipboard.

but in UXP read() and readText() both return the same object with only text/plain

I’m trying to read image data from clipboard, is this a bug or am I doing something wrong?

1 Like