SharePoint 的临时文件夹/位置

发布于 2024-07-24 00:41:34 字数 328 浏览 1 评论 0原文

我在文档库的文档的 ECB 中添加了一个菜单项。 单击该菜单后,我想将该文档复制到我的应用程序中。 为此,我需要在安装 SharePoint 服务器的同一台计算机上创建文档的临时文件。 现在的问题是我应该在哪里创建临时文件。 一种解决方案是当前用户(已登录 sharepoint)的 TEMP 文件夹。 但在 sharepoint 中,来自 Active Directory 的用户也可以登录,但临时文件夹仅对该计算机上的用户可用。 简而言之,要求是在每个用户(该计算机上的用户以及 AD 用户)都有权创建和删除文件的文件夹中创建临时文件。

sharepoint 是否为此目的推荐任何特定位置?

I have added a menu item in ECB of document of document library. On click of that menu i want to copy that document to my application. For this purpose i need to create a temporary file of the document on the same machine where SharePoint server is installed. Now the problem is that where should i create the temporary file.
One solution is TEMP folder of current user(who has logged in sharepoint). But in sharepoint, Users from Active Directory can also login but temp folder is only available for users on that machine.
In short requirement is to create temporary file in a folder where every user (users on that machine as well as AD users) have rights to create and delete file.

Does sharepoint recommend any specific location for this purpose?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

べ映画 2024-07-31 00:41:34

SharePoint 使用 .NET,因此您应该为此使用 .NET 功能:

string tempFilename = System.IO.Path.GetTempFileName();

将使用服务帐户的 TEMP 概念,而不是登录用户的概念。

-奥辛

SharePoint uses .NET, so you should use .NET features for this:

string tempFilename = System.IO.Path.GetTempFileName();

The service account's notion of TEMP will be used, not the logged-in user's.

-Oisin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文