From 019e72040a9c9173c106f169e37d6424ea09e487 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 16 Oct 2015 13:47:00 +0200 Subject: 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(+) (limited to 'apps/files_external') 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); } -- cgit v1.2.3