Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 76ecd89

Browse files
committed
Adding WOPI standard
1 parent 508fa2b commit 76ecd89

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/core/src/pydio/Core/Http/Wopi/Middleware.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ public function emitResponse(ServerRequestInterface $request, ResponseInterface
9696
$meta = $node->getNodeInfoMeta();
9797
$userId = $node->getUser()->getId();
9898
$data = [
99-
"BaseFileName" => urlencode($node->getLabel()),
99+
"BaseFileName" => $node->getLabel(),
100100
"OwnerId" => $userId,
101101
"Size" => $meta["bytesize"],
102102
"UserId" => $userId,
103-
"Version" => "" . $meta["ajxp_modiftime"]
103+
"Version" => "" . $meta["ajxp_modiftime"],
104+
"UserFriendlyName" => $userId
104105
];
105106

106107
$x->addChunk(new Message($data));

0 commit comments

Comments
 (0)