Azure storage files force download to browser

自闭症网瘾萝莉.ら 提交于 2021-01-28 07:03:19

问题


I have my files stored in Azure File System and here are the requirements -

  1. User should be able to view the documents without downloading it to the local
    • This is working fine for pdf but not any other mime types
    • I tried setting Content-Type,Content-Disposition (in azure file properties but no luck) and also iframe.
  2. User should be able to edit the doc online without downloading.
    • I don't think this is possible just with Azure and have to integrate with One Drive may be? Correct me if I am wrong?

I would really appreciate any inputs/thoughts.


回答1:


Not sure if this is a viable option but using Storage Accounts in Azure, you can map these accounts as a network drives to any client machine. So they would be able to access these files via File Explorer.

This link covers the basic steps in setting it up.

Unfortunately for anyone who wishes to use this feature, they need to be on Windows 8 (or above) to be able to map a network drive successfully as it uses SMB3.

If this option is a no go I will delete the post.



来源:https://stackoverflow.com/questions/44331656/azure-storage-files-force-download-to-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!