Update file.php put function posthook calls
Logicaly, postHooks should emit after touch. For chunking file it is already emitting after touch. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
d9aeee2aa1
commit
33cee3502a
|
@ -203,10 +203,6 @@ class File extends Node implements IFile {
|
|||
throw new FileLocked($e->getMessage(), $e->getCode(), $e);
|
||||
}
|
||||
|
||||
if ($view) {
|
||||
$this->emitPostHooks($exists);
|
||||
}
|
||||
|
||||
// allow sync clients to send the mtime along in a header
|
||||
$request = \OC::$server->getRequest();
|
||||
if (isset($request->server['HTTP_X_OC_MTIME'])) {
|
||||
|
@ -214,6 +210,10 @@ class File extends Node implements IFile {
|
|||
header('X-OC-MTime: accepted');
|
||||
}
|
||||
}
|
||||
|
||||
if ($view) {
|
||||
$this->emitPostHooks($exists);
|
||||
}
|
||||
|
||||
$this->refreshInfo();
|
||||
|
||||
|
|
Loading…
Reference in New Issue