diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-16 15:08:18 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-16 15:08:18 -0500 |
commit | 63a2271c78a489d10c15ab2ecb97d62c96d2e0ac (patch) | |
tree | 0f7f1badf9c15519be7584fc1045b971076a7fd7 /apps/files_versions/appinfo | |
parent | 0c87f666ad24492ec45e6d3c05f729132ae1a926 (diff) | |
download | nextcloud-server-63a2271c78a489d10c15ab2ecb97d62c96d2e0ac.tar.gz nextcloud-server-63a2271c78a489d10c15ab2ecb97d62c96d2e0ac.zip |
Change post_write hook to write to prevent creating a duplicate of the original file on upload
Diffstat (limited to 'apps/files_versions/appinfo')
-rw-r--r-- | apps/files_versions/appinfo/app.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/appinfo/app.php b/apps/files_versions/appinfo/app.php index 599d302e6e4..afc0a67edba 100644 --- a/apps/files_versions/appinfo/app.php +++ b/apps/files_versions/appinfo/app.php @@ -10,7 +10,7 @@ OCP\App::registerPersonal('files_versions', 'settings-personal'); OCP\Util::addscript('files_versions', 'versions'); // Listen to write signals -OCP\Util::connectHook('OC_Filesystem', 'post_write', "OCA_Versions\Hooks", "write_hook"); +OCP\Util::connectHook('OC_Filesystem', 'write', "OCA_Versions\Hooks", "write_hook"); // Listen to delete and rename signals OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA_Versions\Hooks", "remove_hook"); OCP\Util::connectHook('OC_Filesystem', 'rename', "OCA_Versions\Hooks", "rename_hook");
\ No newline at end of file |