When sending image, the sender side will show the image thumbnail but the receiver side only show a black color thumbnail. Click on the black thumbnail can download the image without error.
I am using Nextcloud 12.0.4 and ejabberd 17.11.
And, where will the sent file be stored? in Nextcloud server (as a file or in database) or in ejabberd server?