These are just previews but still.
For the most common types you can even request the raw image https://github.com/nextcloud/text/blob/main/lib/Controller/AttachmentController.php#L57-L67
A user assume that the allow download feature works can still have their sensitive photos leaked.