Sending files through Chat

I have read that one person has the same issue with me but we used different chat service. I am using XMPP. All types of files cannot be sent on chat. In this example, I only used PNG image file.

Please notice this problem.