From 796179af00f2fad34b9c244a73985f0448b046d7 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 16 Oct 2015 13:47:00 +0200 Subject: [PATCH] Remove Dropbox metadata from cache after upload This will make sure that the next calls that read the mtime will get the correct value. --- apps/files_external/lib/dropbox.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php index 4ab14d4f3e..6a822c3fc6 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); }