onedrive

CachedFileUpdater doesn't work in OneDrive app on mobile?

你离开我真会死。 提交于 2019-12-05 14:38:47
There is a Cached File Updater contract which allows apps like OneDrive or DropBox to keep files in sync with remote repository when users change them though file pickers. It works roughly like this: User gets a file using FileOpenPicker. User changes file. The source app gets notification that file is changed and uploads new file to backing storage. However, while in official DropBox app this scenario works perfectly, in OneDrive app it doesn't. I'm getting UnauthorizedAccessException when try to get stream for read from a file. I understand some people actually able to change a file, but it

Get OneDrive path in Windows

久未见 提交于 2019-12-05 07:52:17
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. Matt Lengenfelder On my Windows 8.1 computer, the registry key that holds this information is: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\SkyDrive

Onedrive cors download in javascript

若如初见. 提交于 2019-12-05 07:09:59
I'm trying to process onedrive files in client-side javascript, but first I need a way to use XMLHttpRequest to download the file. Onedrive supports cors for a lot of operations, but for downloading the file into javascript there is the following problem: As mentioned here: onedrive rest api manual I can send a request to: GET https://apis.live.net/v5.0/FILE_ID/content?access_token=ACCESS_TOKEN and it will reply with a location header redirecting the browser to the file. The problem is when I send these requests through XHR, the browser always sends the Origin header with the request. For the

Get list of files from SkyDrive folder (Windows Phone)

余生颓废 提交于 2019-12-05 03:31:14
Does anyone know how to get a list of files for a particular SkyDrive folder? Currently I'm using the following snippet to try and get the files for the root SkyDrive folder: var client = new LiveConnectClient(e.Session); client.GetCompleted += (obj, arg) => { ... } client.GetAsync("me/skydrive"); but all it returns is a Result dictionary that contains a lot of info but no list of filenames! According to OneDrive core concepts (previously SkyDrive) you have two options to list files, either in the top directory or a specific folder. As you found out, you can list the top files using liveClient

OneDrive for Business :“invalid_request”,“error_description”:\"AADSTS90014: The request body must contain the following parameter: 'grant_type

扶醉桌前 提交于 2019-12-05 03:13:20
I m trying to integrate the OneDrive for Busines to a Web Form App. For this i am using the documentation given at this url https://dev.onedrive.com/auth/aad_oauth.htm In web Form App I have two Page First one is Login page which have a button for login In button login click i am making a GET Request to OneDrive for Business API using the following code HttpClient client = new HttpClient(); Redirecturi = Uri.EscapeDataString(Redirecturi); string url = string.Format("https://login.windows.net/common/oauth2/authorize?response_type=code&client_id={0}&redirect_uri={1}", ClienId, Redirecturi); var

MS Graph, daemon app 401 unauthorized on Files.ReadWrite.All calls

一世执手 提交于 2019-12-05 02:32:09
UPDATE: I've received notice from Microsoft that this problem is a bug in the Graph API. They're working on a solution. I'm using the new v2.0 OAuth flow to authenticate my app for use with Microsoft Graph to make it able to list any users files, download and upload files in any users OneDrive and set permissions to files. This without the user being logged in, that is running it as a service account/daemon. I've set up a new "Converged application" in the new Application Registration Portal. I've set all necessary scopes/application permission, including Files.ReadWrite.All . (I actually

How to get admin access to files for all user's OneDrive

不打扰是莪最后的温柔 提交于 2019-12-05 00:22:55
I am tenant admin for our Office 365 deployment. we have our internal system which need to access all OneDrive sites. We are using my tenant admin credential to get the OAuth token and trying to get files from all OneDrive sites using SharePoint/OneDrive REST API with that OAuth token. With OAuth token of the tenant admin, we are only able to get the files owned by tenant admin or Shared with tenant admin. we are not able to get the files form other user's OneDrive. Same result with Microsoft Graph API also. we are only able to get the files owned by tenant admin or Shared with tenant admin.

Running php files stored on OneDrive

独自空忆成欢 提交于 2019-12-04 22:54:54
问题 I am developing a php project, having the project files stored on OneDrive so that I can access them from anywhere. I have set up XAMPP, with a VirtualHost pointing to my project folder inside OneDrive so that I can run it in my browser. This has been working great up until yesterday, when OneDrive started crashing and I had to reinstall it. Now I'm no longer able to run php files stored on OneDrive. I get this error in my browser: Warning: Unknown: failed to open stream: No such file or

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

倾然丶 夕夏残阳落幕 提交于 2019-12-04 21:55:54
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 + "/"; public SkyDriveFile DownloadFile(SkyDriveFile file) { string uri = BaseUrl + file.ID + "/content"

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

可紊 提交于 2019-12-04 17:17:34
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 XXXXXXXXXXXXXXXX, Accept:application/json, Content-Type:application/json } You can use the following