Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Share a folder and upload a file #258

Closed
jrichardsz opened this issue Sep 9, 2024 · 1 comment
Closed

Share a folder and upload a file #258

jrichardsz opened this issue Sep 9, 2024 · 1 comment

Comments

@jrichardsz
Copy link

jrichardsz commented Sep 9, 2024

Hi.

My required flow is to create a folder, upload a file and share the folder to some users using onedrive. According to my research, I can create a folder, upload a file but I can't find how to share the folder

(1) Create folder

var folderToCreate = new Item { Name = folderName, Folder = new Folder() };
var newFolder = await client.Drive.Items[parentId].Children.Request().AddAsync(folderToCreate);

(2) Upload a file

upload files successfully via
item = await oneDriveClient.Drive.Root.ItemWithPath(itemPath).Content.Request().PutAsync<Item>(memStream);

(3) Share to some user

  • ???

Is it possible using this SDK/Api or Should I use Sharepoint for that?

Thank you

@baywet
Copy link
Member

baywet commented Oct 2, 2024

Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #259 for more information

@baywet baywet closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants