实现了 PUT_RELATIVE_FILE 并能够让所有PutRelativeFile
测试通过 wopi 测试。
但是当我在 WOPI office 在线查看真实文档(.docx)文件时,我无法获得“另存为”选项来从现有文件创建新文件。
CheckFileInfo
在编辑器/视图模式下获取此选项/链接/按钮时,我缺少什么。
我的 CheckFileInfo 响应信息:
{
BASE_FILE_NAME => stored_file.name,
OWNER_ID => current_user.id.to_s,
SIZE => File.size(path),
USER_ID => current_user.email,
VERSION => document_version(document),
USER_CAN_WRITE => true,
SUPPORTS_DELETE => true,
SUPPORTS_UPDATE => true,
SUPPORTS_LOCKS => true,
SUPPORTS_GET_LOCK => true,
USER_FRIENDLY_NAME => current_user.email,
HOST_EDIT_URL => host_edit_url(request, document),
DOWNLOAD_URL => download_url(request, document),
"UserCanNotWriteRelative" => false,
"SupportsFileCreation" => true
}