diff --git a/src/roster_window.py b/src/roster_window.py
index d00361c70f831f04b29ae2754d60b729187cdbb8..bc4b432db3163aae49dd06f100e3533df7638fb6 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -3988,6 +3988,8 @@ class RosterWindow:
 				return
 			c_dest = gajim.contacts.get_contact_with_highest_priority(account_dest,
 				jid_dest)
+			if not gajim.capscache.is_supported(c_dest, NS_FILE):
+				return
 			uri = data.strip()
 			uri_splitted = uri.split() # we may have more than one file dropped
 			try: