将文档存储在队列中 - 客户端到Office 365文档库 [英] Storing documents in a queue - Client To Office 365 Document Library
问题描述
我们有一个REST API,它接受POST请求将文档(word,excel,pdf)从客户端传输到Modern Team站点的文档库 - SharePoint Online。
We have a REST API that takes a POST request to transfer documents (word, excel, pdf) from a client to a Document Library of a Modern Team site - SharePoint Online.
由于Time Out问题,我们需要将所有文档放在队列中。因此,REST API将使用POST请求接收文档并将它们放入队列中。从队列中我们可以将它们传输到SharePoint。因此,Queue将是
持有大文件的临时位置。
Because of Time Out issue, we need to place all documents in a Queue. Hence, the REST API will receive the document using a POST request and place them in a Queue. From the Queue we can transfer them to SharePoint. So Queue would be a temporary place to hold large files.
设计此队列的最佳技术是什么。我正在使用Visual Studio 2017。
What would be the best technology to design this Queue. I am using Visual Studio 2017.
提前致谢!
Mayank
推荐答案
嗨Mayank,
Hi Mayank,
要上传大型文档,请参考以下代码示例。
To upload large documents, the following code example for your reference.
https://github.com/SharePoint/PnP/tree/dev/ Samples / Core.LargeFileUpload
如果上传文档时出现超时错误,我们可以将这些文件路径存储到CSV文件中,然后再从此CSV上传文件文件。
If you get timeout error when you upload the documents, we can store those files path into a CSV file, then upload the files again from this CSV file.
最好的问候,
丹尼斯
这篇关于将文档存储在队列中 - 客户端到Office 365文档库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!