我已经创建了一个.net核心项目,并参考下面的链接实现了一个带有SharePoint列表的GET/POST请求。
https://www.c-sharpcorner.com/article/consume-sharepoint-online-csom-rest-api-with-dotnet-core-3-1/
现在,我需要在.Net核心项目中使用REST API上传一个带有SharePoint列表项的附件。
有没有人能帮我做同样的事?
谢谢
发布于 2021-10-12 02:22:05
用于将附件上载到列表项的Rest API终结点为:
/_api/lists/GetByTitle('<listName>')/items(<itemId>)/AttachmentFiles/add(FileName='<attachmentName>')
参考:https://sharepoint.stackexchange.com/questions/257779/add-attachment-to-a-list-item-using-rest-api
https://stackoverflow.com/questions/69521095
复制相似问题