2

有没有人为 Sharepoint 外部库成功实施了这个 MSDN 解决方案?

http://msdn.microsoft.com/en-us/library/dd440954.aspx

一些背景知识:我们将为 Intranet 和 Extranet 用户提供文件上传/下载功能。在某些情况下,用户上传会非常大:有时是 WSS3/MOSS2007 2GB 限制的两倍。这个 MSDN 解决方案看起来很有吸引力,因为我们可以利用 Sharepoint 提供的大部分功能 - 版本控制、元数据、身份验证、授权和工作流 - 但仍然可以管理非常大的文件。

以下是我对 MSDN 解决方案的一些具体问题: 1. 该架构显示了通过 Sharepoint 中的 asmx Web 服务进行的文件上传/下载。这些 asmx 服务不会将整个上传加载到内存中吗?2. 安全。它有多细?可以为外部库中的单个文件分配显式权限,还是仅在列表级别设置权限?

4

1 回答 1

0

I've delved into the implementation. Here are some initial observations:

Although file uploads are initiated from Silverlight, the client-side Silverlight code does not break files into chunks before sending to the server. This means the entire file is sent across the wire at once. To support large uploads with this architecture, you'd need to implement something similar to the chunking concepts used in this CodePlex Silverlight File Upload control project. For better performance with large uploads, it may be necessary for the Silverlight component to point directly to the WCF service responsible for writing the streamed file to disk.

Files stored in the external repository are not natively tied to Sharepoint security. Rather, the security model is patterned after the repository. For the sake of simplicity, the sample code stores the repository security model in xml files. Theoretically, you may be able to replace the calls to xml files with calls to Sharepoint web services. This would (again, theoretically) give you both external file storage and Sharepoint context for authorization, versioning, etc.

于 2009-11-16T16:00:43.980 回答