diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-10-16 13:47:00 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-10-16 13:47:00 +0200 |
commit | 796179af00f2fad34b9c244a73985f0448b046d7 (patch) | |
tree | 0259e6a8a1dc06b815e1f87732f53e32f774dfd0 /apps/files_external | |
parent | 7224e99ccd47a0c9320ef9fd7a297b67cbbfd67c (diff) | |
download | nextcloud-server-796179af00f2fad34b9c244a73985f0448b046d7.tar.gz nextcloud-server-796179af00f2fad34b9c244a73985f0448b046d7.zip |
Remove Dropbox metadata from cache after upload
This will make sure that the next calls that read the mtime will get the
correct value.
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/dropbox.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php index 4ab14d4f3e0..6a822c3fc69 100644 --- a/apps/files_external/lib/dropbox.php +++ b/apps/files_external/lib/dropbox.php @@ -288,6 +288,7 @@ class Dropbox extends \OC\Files\Storage\Common { try { $this->dropbox->putFile(self::$tempFiles[$tmpFile], $handle); unlink($tmpFile); + $this->deleteMetaData(self::$tempFiles[$tmpFile]); } catch (\Exception $exception) { \OCP\Util::writeLog('files_external', $exception->getMessage(), \OCP\Util::ERROR); } |