setting CardDAV:max-image-size on addressbook collections, so iOS scales it down before sending

This commit is contained in:
Ralf Becker 2012-02-10 09:06:25 +00:00
parent ed96f75391
commit 693a819d57

View File

@ -585,6 +585,9 @@ class addressbook_groupdav extends groupdav_handler
// default addressbook description: can be overwritten via PROPPATCH, in which case it's already set
$props['addressbook-description'] = HTTP_WebDAV_Server::mkprop(groupdav::CARDDAV,'addressbook-description',$props['displayname']);
}
// setting an max image size, so iOS scales the images before transmitting them
$props['max-image-size'] = HTTP_WebDAV_Server::mkprop(groupdav::CARDDAV,'max-image-size',4096);
// supported reports (required property for CardDAV)
$props['supported-report-set'] = HTTP_WebDAV_Server::mkprop('supported-report-set',array(
HTTP_WebDAV_Server::mkprop('supported-report',array(