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

This commit is contained in:
Ralf Becker 2012-01-30 19:47:34 +00:00
parent a5673d388e
commit 3db7b2f5c2

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(