From ec274ad40b8d8a04d2a5085ee6944cecaf078b66 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 18 Aug 2014 18:39:16 +0200 Subject: [PATCH] Use afterBind to send fileId header for files and directories afterBind is called for both files and directories and is now used to send the OC-FileId headers. --- lib/private/connector/sabre/filesplugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/connector/sabre/filesplugin.php b/lib/private/connector/sabre/filesplugin.php index 5f83aa0fb5..f281ffd14b 100644 --- a/lib/private/connector/sabre/filesplugin.php +++ b/lib/private/connector/sabre/filesplugin.php @@ -41,7 +41,7 @@ class OC_Connector_Sabre_FilesPlugin extends \Sabre\DAV\ServerPlugin $this->server = $server; $this->server->subscribeEvent('beforeGetProperties', array($this, 'beforeGetProperties')); - $this->server->subscribeEvent('afterCreateFile', array($this, 'sendFileIdHeader')); + $this->server->subscribeEvent('afterBind', array($this, 'sendFileIdHeader')); $this->server->subscribeEvent('afterWriteContent', array($this, 'sendFileIdHeader')); }