Description
As a user of a vaadin application, I want to be able to paste images e.g. copied to the clipboard by a snipping tool into an upload component without having to create files for the captures.
- use a tool like windows' "snipping tool" or linux' "spectacle" or an image editor to copy a rectangular image area to the clipboard
- focus a vaadin upload component
- paste (Ctrl+V)
IS
Nothing happens.
SHOULD
Upload the copied image to vaadin.
NOTES
We received a bug report from one of our clients that our application stopped supporting pasting images into Upload components for which they have used "a snipping tool", which was convenient to them because they could upload images "without having the necessity to create a file". (They were using the Brave browser, which according to Brave "is based on the same open-source Chromium code as a number of other browsers".)
Since I could find no update on our side that would have touched such a functionality, I contacted your support chat to check whether a recent bump in Vaadin version (we were upgrading from 14.2.0 to 14.4.1) could have broken this, but they found "no indication that [the upload] component has ever supported copy-paste in the first place".
They also noted that "it could be that it was more of the browser who did the work: the browser created a temporary file, then filled the name into the Upload component" and that a recent update of the client's browser could be to blame for the now missing feature.
We will be implementing a custom workaround to give that functionality back to the client, but feel it would be nice to have this officially supported.