Permalink
Browse files

Adding WOPI standard

  • Loading branch information...
1 parent 508fa2b commit 76ecd89903643c8d80bc19605f4307e4c41fe53b @ghecquet ghecquet committed Oct 14, 2016
Showing with 3 additions and 2 deletions.
  1. +3 −2 core/src/core/src/pydio/Core/Http/Wopi/Middleware.php
@@ -96,11 +96,12 @@ public function emitResponse(ServerRequestInterface $request, ResponseInterface
$meta = $node->getNodeInfoMeta();
$userId = $node->getUser()->getId();
$data = [
- "BaseFileName" => urlencode($node->getLabel()),
+ "BaseFileName" => $node->getLabel(),
"OwnerId" => $userId,
"Size" => $meta["bytesize"],
"UserId" => $userId,
- "Version" => "" . $meta["ajxp_modiftime"]
+ "Version" => "" . $meta["ajxp_modiftime"],
+ "UserFriendlyName" => $userId
];
$x->addChunk(new Message($data));

0 comments on commit 76ecd89

Please sign in to comment.