diff --git a/lib/WOPI/Parser.php b/lib/WOPI/Parser.php index 53dfd05e..fb066218 100755 --- a/lib/WOPI/Parser.php +++ b/lib/WOPI/Parser.php @@ -188,7 +188,7 @@ public function getUrlSrcForFile(File $file, bool $edit): string { } $actions = [ - $edit && $file->getSize() === 0 ? self::ACTION_EDITNEW : null, + $edit && ($file->getSize() === 0 || $file->getSize() === 1) ? self::ACTION_EDITNEW : null, $edit ? self::ACTION_EDIT : null, self::ACTION_VIEW, ];