onedrive

Microsoft Graph API - Resumable upload returns 404 when uploading chunk [duplicate]

感情迁移 提交于 2019-12-07 08:19:25
This question already has answers here : Resumable upload returns Unauthorized when uploading chunk (2 answers) Closed 2 years ago . Following the answer to this question I removed my Authorization header when uploading the first chunk of my resumable upload. So creating the session: POST https://graph.microsoft.com/V1.0/groups/a0aab702-8e58-4f25-b2dd-066e5d110f0c/drive/root:/10cb244a-d181-44df-aabc-51c30d4cf0f5.txt:/createUploadSession HTTP/1.1 Authorization: Bearer XXX Content-Type: application/json; charset=utf-8 Host: graph.microsoft.com Content-Length: 75 Expect: 100-continue { "item": {

Get OneDrive path in Windows

坚强是说给别人听的谎言 提交于 2019-12-07 02:39:56
问题 I have a C# WPF application and I am trying to find a way to get the path to the root OneDrive directory in Windows. How can I do this programmatically? I have searched online, but I couldn't find anything. I wish I could supply some code but I have no clue; I mean, I have checked system environment variables and I couldn't find anything on my machine, thinking that could be a valid solution, but it didn't turn up anything. 回答1: On my Windows 8.1 computer, the registry key that holds this

Microsoft Graph: Search for DriveItems on a SharePoint drive returns no results

杀马特。学长 韩版系。学妹 提交于 2019-12-06 20:40:28
I have files in a SharePoint Drive and want to develop a full-text search. The following call in the Graph Explorer works, finding my files either by filename or content: https://graph.microsoft.com/v1.0/drives/{my drive id}/root/search(q='my search word') The same call from my Azure hosted ASP.NET app using the Microsoft.Graph-NuGet package allways returns an empty list: await _client .Drives[{my drive id}] .Root .Search({my search word}) .Request() .GetAsync() _client is an authenticated GraphServiceClient . For authentication, I receive a token through the Azure AD endpoint (app registered

How to use one drive file picker in browser?

前提是你 提交于 2019-12-06 16:56:53
I need to integrate One Driver file picker in my website. I am using this js lib to do the task. <script type="text/javascript" src="//js.live.net/v5.0/wl.js"></script> The code I wrote is WL.init({ client_id: "000000004C1xxxxx", redirect_uri: 'https://xxx.net/' }); WL.login({ scope: "wl.skydrive wl.signin" }).then( function(response) { WL.fileDialog({ mode: "open", select: "multi" }).then( function (response) { }, function (responseFailed) { } ); }, function(response) { log("Failed to authenticate."); } ); It showed the popup window, and went through the authentication process. However once I

List children API doesn't give all the children of the drive/folder

江枫思渺然 提交于 2019-12-06 15:03:35
I am facing the following issue while getting files/folders for OneDrive of a user. On hitting https://graph.microsoft.com/v1.0/users/ {user-id}/drive I get this in the response: "quota": { "deleted": 0, "remaining": 0, "total": 0, "used": 0 } which denotes that the drive isn't being used or is empty. On hitting https://graph.microsoft.com/v1.0/users/{user-id}/drive/root I get the response - "folder": { "childCount": 21 }, "root": {}, "size": 281236319 Here, it denotes that there are 21 files/folders in the drive's root folder and they occupy 281.23 MB of space. Now, on hitting https://graph

Can't download complete image file from skydrive using REST API

坚强是说给别人听的谎言 提交于 2019-12-06 13:35:51
问题 I'm working on a quick wrapper for the skydrive API in C#, but running into issues with downloading a file. For the first part of the file, everything comes through fine, but then there start to be differences in the file and shortly thereafter everything becomes null. I'm fairly sure that it's just me not reading the stream correctly. This is the code I'm using to download the file: public const string ApiVersion = "v5.0"; public const string BaseUrl = "https://apis.live.net/" + ApiVersion +

iOS OneDrive (skydrive) app displays permissions dialog every time it runs

眉间皱痕 提交于 2019-12-06 13:20:24
I'm developing an iOS app that gives users access to their OneDrive/SkyDrive and I've run into a very annoying issue: The very first time a user links the app to their OneDrive, everything goes as expected: They have to enter a user id and password Then they have to agree to let the app access their info Then they get to browse their OneDrive That's all good. But, if the app closes, and you try to access the OneDrive again, rather than skipping straight to #3, and being able to access the OneDrive, they are stopped at step #2 (step 1 is skipped, as expected) and they have to agree again to let

Unable to create/rename files with special character “(” (Open Parenthesis)

。_饼干妹妹 提交于 2019-12-06 11:36:05
问题 I have an issue while creating / renaming files in OneDrive for Business(Admin) through rest client(PostMan). Can you guys point me where i can find the tutorial or any documentation that states any specific requirements / restrictions for creating / renaming a file. Please find the below details of the request. URL : https://graph.microsoft.com/v1.0/cloudfuze.co/users/{user_id}/drive/items/{parent_id}/children/{file_name}/content Ex File Name : (test).jpg Headers : { Authorization:Bearer

MS Graph Java SDK: how to upload a large file to OneDrive?

丶灬走出姿态 提交于 2019-12-06 11:06:08
问题 I'm trying to upload file to a OneDrive from my Java application, but i dont understand the flow and dont see any documentation or methods within SKD for file upload. The only flow i've found is: driveClient.me().drive().root().createUploadSession(uploadProperties).buildRequest().post() But this results in NPE: source . how can i set the content as InputStream ? 来源: https://stackoverflow.com/questions/54008743/ms-graph-java-sdk-how-to-upload-a-large-file-to-onedrive

C# UWP LiveSKD and OneDrive access using FileOpenPicker

微笑、不失礼 提交于 2019-12-06 09:34:06
I'm developing a Universal Windows Platform app that allows a user to open and edit files using the FileOpenPicker. The idea is that the user can choose any file on their computer, including files located in their OneDrive folders. On Windows 10 Desktop, this is working perfectly. However, on a Windows Phone 10 device, the result is very different. When a user chooses a file with the picker, the file is downloaded to a local storage folder, and the user is able to edit the file. But when the file is edited, it is not synced back to OneDrive. According to https://dev.onedrive.com/ Picker SDKs