How to upload to a OneDrive shared folder programmatically with least user interaction?

时光毁灭记忆、已成空白 提交于 2019-12-11 12:58:50

问题


one question, if it's possible, how to upload files, to a shared OneDrive folder? I'd like to make an app, that would use the OneDrive as storage, but since OneDrive SDK requires user's login, I was wondering if it's possible to first programmatically share, or somehow with least user interaction have my app's users be able to access a folder from my own OneDrive for Business 1TB account and have them chunk upload the file there instead of uploading it to their own account?

As I said, ideally I'd like to have them upload it as a if they were using their own account, that is for the app not to be dependent on their account's possible lack of space, so that if they upload a really large file it will upload to my own shared directory from my own 1TB account which I will regularly empty...

I've tried the C# OneDrive SDK and saw it's possible to chunk upload a really large file and maybe even have that OneDrive account notify my app of some upload via webhooks so that I could maybe download the newly crated files to my account afterwards but that would be my last option if it's even possible and not against OneDrive usage guidelines, so is it possible to do it like I would like to please, and if so how also?

来源:https://stackoverflow.com/questions/57084612/how-to-upload-to-a-onedrive-shared-folder-programmatically-with-least-user-inter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!