diff --git a/lib/Controller/ImageController.php b/lib/Controller/ImageController.php index 5649a720..4c8f6a0e 100644 --- a/lib/Controller/ImageController.php +++ b/lib/Controller/ImageController.php @@ -344,6 +344,9 @@ class ImageController extends GenericApiController $file->putContent($blob); } + // Make sure the preview is updated + \OC::$server->get(\OCP\IPreview::class)->getPreview($file); + return new JSONResponse([ 'fileid' => $file->getId(), 'etag' => $file->getEtag(), diff --git a/src/components/viewer/Viewer.vue b/src/components/viewer/Viewer.vue index 30e882aa..336f397a 100644 --- a/src/components/viewer/Viewer.vue +++ b/src/components/viewer/Viewer.vue @@ -176,7 +176,7 @@