Merge pull request #19831 from owncloud/ext-dropbox-removecacheafterupload

Remove Dropbox metadata from cache after upload
This commit is contained in:
Thomas Müller 2015-10-16 16:45:18 +02:00
commit 7e9714340e
1 changed files with 1 additions and 0 deletions

View File

@ -288,6 +288,7 @@ class Dropbox extends \OC\Files\Storage\Common {
try { try {
$this->dropbox->putFile(self::$tempFiles[$tmpFile], $handle); $this->dropbox->putFile(self::$tempFiles[$tmpFile], $handle);
unlink($tmpFile); unlink($tmpFile);
$this->deleteMetaData(self::$tempFiles[$tmpFile]);
} catch (\Exception $exception) { } catch (\Exception $exception) {
\OCP\Util::writeLog('files_external', $exception->getMessage(), \OCP\Util::ERROR); \OCP\Util::writeLog('files_external', $exception->getMessage(), \OCP\Util::ERROR);
} }