[英]Upload document in online SharePoint site collection document library from another application outside SharePoint
I have developed a SharePoint App that is running on Online SharePoint 2016 site Collection. 我已经开发了在Online SharePoint 2016网站集中运行的SharePoint应用程序。
Have another Software Application with Rest API that is running on my another Online server. 在另一个在线服务器上运行另一个带有Rest API的软件应用程序。 More this app is purely developed using HTML,Javascript/JQuery.
更多此应用程序是完全使用HTML,Javascript / JQuery开发的。 no server side scripting.
没有服务器端脚本。
More SharePoint App strongly integrated with my Software Application (using Ajax calls for data fetching). 更多SharePoint应用程序与我的软件应用程序紧密集成(使用Ajax调用进行数据提取)。
Now the issue is, i want to upload files into SharePoint from Software Application. 现在的问题是,我想从软件应用程序将文件上传到SharePoint。
Note: Anonymous access is not available in Office 365 Online account as per my R&D. 注意:根据我的研发,匿名访问在Office 365 Online帐户中不可用。
Please help and Thanks in Advance. 请帮助并提前致谢。
You can follow the steps below to upload a file by using the REST API and jQuery: 您可以按照以下步骤使用REST API和jQuery上传文件:
These examples use the getfolderbyserverrelativeurl endpoint to reach the file collection. 这些示例使用getfolderbyserverrelativeurl端点到达文件集合。 You can also use a list endpoint (example: …/_api/web/lists/getbytitle('')/rootfolder/files/add).
您还可以使用列表端点(例如:…/ _api / web / lists / getbytitle('')/ rootfolder / files / add)。
For more information, please review the following link: Upload a file by using the REST API and jQuery 有关更多信息,请查看以下链接: 使用REST API和jQuery上传文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.