onedrive

How can I check local OneDrive folder is in sync?

你。 提交于 2019-12-18 05:55:52
问题 I need to be able to check if the local OneDrive folder is in sync/up to date. Can I check this by looking at any of the file/folder properties(in C# code) Without using any of One Drive APIs? 回答1: I was stuck with that and tought to check the main folder Icon. EDITED The point is to extract the synced folder icon and get the overlay CLSID. You first need a class to extract the info you need : using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System

Upload file to skydrive through SkyDrive API

巧了我就是萌 提交于 2019-12-18 04:23:39
问题 I try to upload a text file to my skydrive or at least create new text file in SD and edit it's content, through SkyDrive API in my Windows 8 application. How can I do that? I tried to do something like that: LiveConnectClient client = new LiveConnectClient(session); var fileData = new Dictionary<string, object>(); fileData.Add("name", "new_file.txt"); try { LiveOperationResult fileOperationResult = await client.PutAsync("me/skydrive", fileData); this.infoTextBlock.Text = fileOperationResult

Callback URL in Skydrive API to localhost

南楼画角 提交于 2019-12-14 04:23:16
问题 I am trying to implement SkyDrive API into my Asp.net mvc3 application.I tried to create app in Microsoft using this tutorial for implementing user authentication , but I am facing a problem in Callback Url , because Microsoft forces me to add a real domain and I want to use my localhost in order to develop it right now. 回答1: Alternatively you could add a fake domain to your /etc/hosts (Linux) C:\Windows\System32\drivers\etc\hosts (windows) file. Just add the following lines: 127.0.0.1 www

“Unable to retrieve user's mysite URL” OneDrive Request

心不动则不痛 提交于 2019-12-14 03:27:32
问题 https://graph.microsoft.com/v1.0/me/drive/root/children My app was working properly until Friday but now I am getting "Unable to retrieve user's mysite URL" error ! What is going on? 回答1: your Office 365 subscription is in locked out state. I expect that it's not only Microsoft Graph calls that don't work, but OneDrive and other Office products can't be used directly either, without an active license. 来源: https://stackoverflow.com/questions/46290822/unable-to-retrieve-users-mysite-url

Does OneDrive change/re-encode jpg files?

走远了吗. 提交于 2019-12-14 03:19:24
问题 I have encountered a strange problem I am unable to debug. An image is uploaded to Onedrive via some code very similar to the given example, and once uploaded, the image is visible in the OneDrive web interface. http://msdn.microsoft.com/en-us/library/dn659727.aspx Upon trying to download it, again using code from the example, the following line of code Bitmap bMap = BitmapFactory.decodeStream(input); also returns a null value for bMap. I know these files (which I obtain from copying from the

Provide the 'allowthrottleablequeries' preference to allow this

此生再无相见时 提交于 2019-12-13 15:24:17
问题 I have developed an API using Microsoft Graph API. I am encountering below issue. URL that I am calling : /v1.0/sites/root/lists/cb32cc85-5351-423d-b2ec-bb418c1d9c64/items? $filter=fields/Created gt '2018-1-1T00:00:00' &expand=fields &$orderby=createdDateTime &$top=10 Error returned from the API : Field 'Created' cannot be referenced in filter or orderby as it is not indexed. Provide the 'allowthrottleablequeries' preference to allow this, but be warned that such queries may fail on large

C# OneDrive for Business / SharePoint: get server path from locally synced file

*爱你&永不变心* 提交于 2019-12-13 13:12:06
问题 I'm writing a WPF C# application, and would like to obtain the SharePoint URL of a locally synced file. In Windows Explorer, the user can right click on a file in the synced OneDrive folder, select "OneDrive for Business" menu and "Copy link". This provides the SharePoint URL of the synced file. Is there a way to replicate this in C#? At the moment, if I reference the file using a FileOpenDialog from within my application, I only get the local physical path (e.g. c:\onedrive...\file.txt). How

Not able to use One Drive API for One Drive for Business

醉酒当歌 提交于 2019-12-13 06:00:04
问题 I am trying to provide one drive functionality in my winform application(.Net 3.5). I have successfully implemented this for one drive, but I am having trouble doing it for one drive for business. I have registered my application in azure and I am able to authenticate user, get the access token and tenant URL for logged in user. I am using the instructions provided on this [link]https://dev.onedrive.com/auth/aad_oauth.htm. When I try to access default drive it gives me unauthorized error.

Multipart upload binary content with OneDrive Rest APIs

倖福魔咒の 提交于 2019-12-13 03:47:59
问题 As per the API documentation here I formed my request with postman as follows: . This is working fine. But when it comes to binary content(encoded in base64 format), it uploads the file but that is not previewed when I try to open the same on OneDrive. File gets uploaded successfully but not previewable. What am I missing here? Any suggestions? 回答1: OneDrive doesn't support Content-Transfer-Encoding when using the multi-part upload method. In this case, we're ignoring the header (that seems

Chunked upload (resumable upload) for OneDrive?

ぐ巨炮叔叔 提交于 2019-12-13 02:20:10
问题 I'd like to upload a large file (say 500MB) to OneDrive, but I cannot find any API to do chunked upload. There is one similar question here without explicit answer. It looks like there is no support to chunked upload currently? Thanks. 回答1: That's correct, we currently do not support this. 回答2: OneDrive already support chunking upload https://gist.github.com/rgregg/37ba8929768a62131e85 来源: https://stackoverflow.com/questions/23603176/chunked-upload-resumable-upload-for-onedrive