diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-07-07 20:16:27 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-07-07 20:16:27 +0200 |
commit | 227320f6f01dec264de820863f971d3e92a486ff (patch) | |
tree | 09b5863ba0acf36c2727ca5b7f2659e148fc7dc8 /Zotlabs/Storage | |
parent | a59e84cadd257403e30d57dcf5e4ed8d0715965a (diff) | |
download | volse-hubzilla-227320f6f01dec264de820863f971d3e92a486ff.tar.gz volse-hubzilla-227320f6f01dec264de820863f971d3e92a486ff.tar.bz2 volse-hubzilla-227320f6f01dec264de820863f971d3e92a486ff.zip |
more fixes for /cloud and /dav
Diffstat (limited to 'Zotlabs/Storage')
-rw-r--r-- | Zotlabs/Storage/Directory.php | 2 |
1 files changed, 2 insertions, 0 deletions
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", |