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:
parent
98540779da
commit
6bd115f09b
@ -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();
|
||||
|
Reference in New Issue
Block a user