实现了PUT_RELATIVE_FILE,并且能够获得通过wopi测试的所有PutRelativeFile
测试。
但是,当我在线查看WOPI办公室的真实文档(.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
}