diff --git a/lib/public/files.php b/lib/public/files.php
index 700bf574537fb6046743b8680c9152a07f8b9c3c..4975bbb7dfa03456b252ece8d0c89017113f6452 100644
--- a/lib/public/files.php
+++ b/lib/public/files.php
@@ -55,6 +55,16 @@ class Files {
 		return(\OC_Helper::getMimeType( $path ));
 	}
 
+	/**
+	 * search for files by mimetype
+	 *
+	 * @param string $query
+	 * @return array
+	 */
+	public function searchByMime($mimetype) {
+		return(\OC\Files\Filesystem::searchByMime( $mimetype ));
+	}
+
 	/**
 	 * copy the contents of one stream to another
 	 * @param resource source