[英]Upload Files to Documentset with MS Graph Rest APi
I am trying to figure out how to upload files to a document set.我想弄清楚如何将文件上传到文档集。 It uses Lists, for upload files to a drive, it works following the manual i found on docs.microsoft.com
它使用列表,将文件上传到驱动器,它按照我在 docs.microsoft.com 上找到的手册工作
''' Already working '''已经工作
But how or and how are they stored in SharePoint.但是它们是如何或如何存储在 SharePoint 中的。 , for each drive, i get a drive id, for each document in, does have them the same listid or?
,对于每个驱动器,我得到一个驱动器 id,对于每个文档,它们是否具有相同的 listid 或?
I figured it out.我想到了。
When you need to find out the relation between ListItems or DriveItems, just add - Driveitem after the listId.当你需要找出ListItems或DriveItems之间的关系时,只需在listId后面加上-Driveitem即可。 Then you wil get the DriveID.
然后您将获得 DriveID。 In the same way, it works for getting to know the listId - add DriveaId of the ListID.
以同样的方式,它可以用于了解 listId - 添加 ListID 的 DriveaId。
Now I can add the correct file to the correct documentset(folder).现在我可以将正确的文件添加到正确的文档集(文件夹)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.