From 227320f6f01dec264de820863f971d3e92a486ff Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 7 Jul 2016 20:16:27 +0200 Subject: more fixes for /cloud and /dav --- Zotlabs/Storage/Directory.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Zotlabs/Storage') diff --git a/Zotlabs/Storage/Directory.php b/Zotlabs/Storage/Directory.php index 7a2d9e68b..b524b3cab 100644 --- a/Zotlabs/Storage/Directory.php +++ b/Zotlabs/Storage/Directory.php @@ -206,6 +206,8 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota { throw new DAV\Exception\Forbidden('Permission denied.'); } + require_once('include/attach.php'); + $mimetype = z_mime_content_type($name); $c = q("SELECT * FROM channel WHERE channel_id = %d AND channel_removed = 0 LIMIT 1", -- cgit v1.2.3