Merge pull request #19831 from owncloud/ext-dropbox-removecacheafterupload
Remove Dropbox metadata from cache after upload
This commit is contained in:
commit
7e9714340e
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue