简体   繁体   English

Sharepoint 在线/365 集成(上传文件)在 Azure 和 WebApi C#.Net Core 2.2 上托管的 React 应用程序上

[英]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.

相关问题 是否可以使用 c# 在线将文件上传到 SharePoint 中的自定义列表 - Is it possible to upload files to a custom list in SharePoint online using c# 如何使用C#将文件上传到Sharepoint在线文档库 - How to upload files to sharepoint online document library using c# Azure上托管的ASP.NET Core 2.2 App Service返回500,没有引发异常 - ASP.NET Core 2.2 App Service hosted on Azure returning 500 without an exception being thrown 如何在 .NET Core 2.2 WebApi 和 Azure AD 2.0 中配置 Swagger? - How to Configure Swagger in .NET Core 2.2 WebApi and Azure AD 2.0? 如何使用.net内核和C#上传文件到Sharepoint? - How to upload file in Sharepoint using .net core with C#? 使用 SSIS (vb.net / C#.net) 将压缩文件上传到 SharePoint 文档库 Office 365 - Upload zipped files to SharePoint Document Library Office 365 using SSIS (vb.net / C#.net) Sharepoint与Office 365的在线电子邮件集成 - Sharepoint online email integration with Office 365 如何授权 .NET 5.0/C# 应用程序在没有用户交互的情况下与 Microsoft 365 SharePoint Online 交互? - How can I authorize a .NET 5.0 / C# application to interact with Microsoft 365 SharePoint Online without user interaction? 如何让 IOptionsMonitor<T> 从托管在 Azure Windows Server VM 上的正在运行的 .NET Core 2.2 应用程序获取最新配置值? - How to let IOptionsMonitor<T> get the latest configuration value from a running .NET Core 2.2 app hosted on an Azure Windows Server VM? .NET CORE 2.2 MVC C#中的MapRoutes - MapRoutes in .NET CORE 2.2 MVC C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM