How can I copy the filenames of attachments in Gmail?

I can't find a good way in the new interface that was introduced last year:

[![enter image description here](https://i.stack.imgur.com/PTdsV.gif)](https://i.stack.imgur.com/PTdsV.gif)

I don't want to have to download the attachment to get the filename.