[英]Sharepoint online/365 integration (To upload files) on React app hosted on Azure and WebApi C# .Net Core 2.2
I'm struggling since some weeks ago trying to interact/automate a way to upload files from a Web App created in React and upload files to a Sharepoint Online Site – in a specific folder.自从几周前尝试交互/自动化一种从 React 中创建的 Web 应用程序上传文件并将文件上传到 Sharepoint 在线站点的方法时,我一直在苦苦挣扎 - 在特定文件夹中。 The WebApp is hosted in Azure and using a C#.Net Core 2.2 as backend. WebApp 托管在 Azure 中,并使用 C#.Net Core 2.2 作为后端。
I'm trying to using some kind of REST API that help me out with this task (Could be on React in frontend, or in C# Core or C# MS FW.Net for backend) I'm searching across internet a way to do it but all the testings were failed. I'm trying to using some kind of REST API that help me out with this task (Could be on React in frontend, or in C# Core or C# MS FW.Net for backend) I'm searching across internet a way to do it但所有的测试都失败了。
Someone can give me some insight, tip or advice on how to achieve this?有人可以就如何实现这一目标给我一些见解、提示或建议?
I'm trying:我正在努力:
Use code from Microsoft WebPage (Using jQuery).使用来自 Microsoft WebPage 的代码(使用 jQuery)。
Using PnP, but on my localhost I receive a CORS problem (I'm trying using Client ID and Secret ID to interact with Sharepoint).使用 PnP,但在我的本地主机上,我收到 CORS 问题(我正在尝试使用客户端 ID 和机密 ID 与 Sharepoint 交互)。
I resolve the problem using Microsoft Graph.我使用 Microsoft Graph 解决了这个问题。 I have a backend created on C#.Net Core, just I needed to create an application on Microsoft Azure Portal, linked to MS Graph API, adding permissons and generate a Secret ID to link the app with the BackEnd.我在 C#.Net Core 上创建了一个后端,我只需要在 Microsoft Azure 门户上创建一个应用程序,链接到 MS Graph API,添加一个带有权限的秘密应用程序并生成一个秘密链接。
Sounds easy, but it's required also integrate the Microsoft Fundation to authenticate the users and allow access to modify, read and delete information from Office 365.听起来很简单,但还需要集成 Microsoft Fundation 来对用户进行身份验证,并允许从 Office 365 中修改、读取和删除信息。
Totally worth it the time spend implementing this module完全值得花时间来实现这个模块
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.