简体   繁体   English

如何使用OneDrive API将文件上传到OneDrive上的共享文件夹中?

[英]How can I upload files into a shared folder on OneDrive using OneDrive API?

I am trying to upload files into a shared folder (from other users) on OneDrive using the Live SDK on Windows Runtime (version 5.6.0). 我正在尝试使用Windows运行时(版本5.6.0)上的Live SDK将文件上传到OneDrive上的共享文件夹(来自其他用户)。

However, it seems that the current version of the SDK does not support uploading to folders of other users. 但是,当前版本的SDK似乎不支持上传到其他用户的文件夹。 Is that correct? 那是对的吗?

I can upload easily to my own folder using 我可以使用以下方式轻松上传到自己的文件夹中

client.BackgroundUploadAsync(folderId, file.Name, file, OverwriteOption.Rename);

but doing the same in other users' folder will return an unauthorization error. 但是在其他用户的文件夹中执行相同操作将返回未授权错误。

You are correct. 你是对的。 Live Connect does not currently support uploading files to folders other than those owned by the user on whose behalf you are making your API calls. Live Connect当前不支持将文件上传到除您代表其进行API调用的用户所拥有的文件夹之外的其他文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM