Mic*_*ick 5 ms-word ms-office azure file-storage azure-storage
我在Azure Web应用程序中要求编辑文档,而不是:
客户希望获得与您在Sharepoint中获得的体验相似的体验,即
我发现的一种解决方案是...
将文档存储在Azure文件共享中。创建一个登录脚本,该脚本将在每个Windows客户端访问权限上运行,以设置Azure文件共享的用户名和密码。
cmdkey /add:<storage_account>.file.core.windows.net /user:AZURE\<storage_account> /pass:<storage_account_key>
Run Code Online (Sandbox Code Playgroud)
使用html中的链接,例如...
<a href='file://///<storage_account>.file.core.windows.net/<storage_container>/test.docx'>Test.doc</a>
Run Code Online (Sandbox Code Playgroud)
这有很多问题。
谁能建议替代解决方案?
用于在 Azure 存储中编辑 MS Word 文档的选项
要在线编辑MS Word文档,将Word文档保存到OneDrive是一个不错的选择。OneDrive会提供我们上传的文件的链接,我们可以根据这个链接查看和编辑文件。
以下是详细步骤。
PUT https://graph.microsoft.com/v1.0/drive/root:/Documents/{filename}.docx:/content HTTP/1.1
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Authorization: Bearer {your token}
Accept: application/json
Host: graph.microsoft.com
Expect: 100-continue
Connection: Keep-Alive
Put your file content here
Run Code Online (Sandbox Code Playgroud)
我们可以从响应 JSON 对象的 webUrl 属性中获取文件的链接。是这样的,
"webUrl": "https://1drv.ms/w/s!AI164yLtIBq0gSA"
Run Code Online (Sandbox Code Playgroud)
欲了解更多信息,以下链接供您参考。
POST /subscriptions
Content-Type: application/json
{
"notificationUrl": "https://xxxx.azurewebsites.net/api/webhook-receiver",
"expirationDateTime": "2018-01-01T11:23:00.000Z",
"resource": "/me/drive/root",
"changeType": "updated",
"clientState": "client-specific string"
}
Run Code Online (Sandbox Code Playgroud)
欲了解更多信息,以下链接供您参考。
| 归档时间: |
|
| 查看次数: |
1315 次 |
| 最近记录: |