diff --git a/inc/joindre_document.php b/inc/joindre_document.php
index 7d8d29c2aa3403fd05f6cfe28f63e88a3b9ec105..3a156756ed1b4e92249609cf736046478bd14398 100644
--- a/inc/joindre_document.php
+++ b/inc/joindre_document.php
@@ -89,6 +89,7 @@ function joindre_trouver_fichier_envoye(){
 		$path = _request('cheminftp');
 		if (!$path || strstr($path, '..')) return _T('medias:erreur_indiquez_un_fichier');
 		
+		include_spip('inc/documents');	
 		include_spip('inc/actions');
 		$upload = determine_upload();
 		if ($path != '/' AND $path != './') $upload .= $path;