1
0

Enabling the GuessContentType plugin is essential for webdav clients being about to present image previews. mime type will now be sent back in the response.

http://code.google.com/p/sabredav/wiki/GuessContentType
This commit is contained in:
matthew-b-payne 2011-10-19 23:23:09 -03:00
parent 98540779da
commit 6bd115f09b

View File

@ -34,6 +34,7 @@ class WebDAV_Controller extends Controller {
$server->setBaseUri(url::site("webdav/gallery"));
// $server->addPlugin($lock);
$server->addPlugin($filter);
$server->addPlugin(new Sabre_DAV_Browser_GuessContentType());
if ($this->_authenticate()) {
$server->exec();