diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-10-16 13:47:00 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-10-26 11:55:39 +0100 |
commit | 019e72040a9c9173c106f169e37d6424ea09e487 (patch) | |
tree | d3ea7471a83fb022000bcab224f2c75e95fd2980 /apps/files_external | |
parent | 7d2bb6c0288ca3e0fbb0f021f48c758f383249c0 (diff) | |
download | nextcloud-server-019e72040a9c9173c106f169e37d6424ea09e487.tar.gz nextcloud-server-019e72040a9c9173c106f169e37d6424ea09e487.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); } |