onedrive

UWP: Upload large files to OneDrive using OneDrive SDK

限于喜欢 提交于 2020-01-03 05:50:28
问题 I can upload "small" files (< 100 MB) using the following code: await OneDriveClient .Drive .Special .AppRoot .Children["filename"] .Content .Request() .PutAsync<Item>(contentStream); For Large files (> 100 MB) I read that you have to create an Upload Session . Something like this? UploadSession uSession = await OneDriveClient .Drive .Special .AppRoot .Children["filename"] .CreateSession(VarChunkedUploadSessionDescriptor) .Request() .PostAsync(); I am not sure what steps are after this? (Or

Get list of files from SkyDrive folder (Windows Phone)

折月煮酒 提交于 2020-01-02 02:19:04
问题 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! 回答1: According to OneDrive core concepts (previously SkyDrive) you have two options to list files,

How to download files from OneDrive

℡╲_俬逩灬. 提交于 2020-01-01 10:52:50
问题 I am looking to download my files in public folder from One Drive, but it doesn't download the files. Here is the scenario: In public folder I have another folder with multiple files in it and is accessible widely. for test purpose I have shared all the files in public folder (I don't if it's proper way of sharing it). The following links are provided for me to download the file: From shared folder link https://onedrive.live.com/redir?resid=DBBC281099F4FE69!646&authkey=!AGRCGuw8Y2_p9mA&ithint

OneDrive API createUploadSession “API not found”

久未见 提交于 2019-12-30 11:55:28
问题 According to the onedrive api docs to upload large files to OneDrive, first you create an upload session, then you send the fragments. That all makes sense, but for some reason it's telling me that my request is invalid when I try the createUploadSession call to start the process. Following the documentation, it says the request uri must follow this pattern: POST /drive/root:/{path_to_item}:/createUploadSession request: method: 'POST' uri: 'https://api.onedrive.com/v1.0/drive/root:/testfile

Convert to PHP REST CURL POST

做~自己de王妃 提交于 2019-12-30 10:48:29
问题 How can we convert this code to PHP REST CURL POST? POST https://apis.live.net/v5.0/me/skydrive/files?access_token=ACCESS_TOKEN Content-Type: multipart/form-data; boundary=A300x --A300x Content-Disposition: form-data; name="file"; filename="HelloWorld.txt" Content-Type: application/octet-stream Hello, World! --A300x-- 回答1: $url = 'POST https://apis.live.net/v5.0/me/skydrive/files'; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POSTFIELDS, array('access_token'

How to make REST call to MS Graph/OneDrive method with OAuth2

老子叫甜甜 提交于 2019-12-25 08:37:55
问题 I am trying to use the OneDrive API and I have successfully registered my app through their Application Registration Portal. I can call successfully call the Javascript FilePicker SDK to upload and download files That demonstrates that I have my app registered properly and the proper app/client-id's. Now I'd like to use the REST services to upload and download files but I'm not sure how to send authentication and I don't know how to make the call to the proper URL. My first question is : How

How to programmatically open a file located in OneDrive using desktop Word?

为君一笑 提交于 2019-12-25 07:48:03
问题 I have a .docx file in OneDrive . If I click on it, it opens on Word Online . Then, there is a button that says Edit in Word that opens the current file in desktop Word (you have to provide credentials, of course). Using the OneDrive API , I'm able to open a file directly in Word Online from my PHP application (since it provides the file URL), but now I'm trying to directly open it in Word Offline (and then, Word will prompt the credentials to the user). TL;DR: I'm trying to reproduce the

Accessing another user's drive using the OneDrive SDK

混江龙づ霸主 提交于 2019-12-25 04:29:11
问题 I can't figure out the proper syntax to open another user's OneDrive folder. What am I doing wrong? The parameter is supposed to be "ID", but is that a user ID/name, a drive ID - what? Below is some pseudo-code, based on the OneDrive API Browser sample. I get this error: "The provided drive id appears to be malformed, or does not represent a valid drive." private async Task LoadUserDriveTest() { Item folder; var expandValue = "thumbnails,children"; folder = await oneDriveClient .Drives[$"user

Consuming onedrive rest api in development environment using localhost

孤者浪人 提交于 2019-12-25 04:13:37
问题 Want to access list of files stored in one drive using jquery. REST API provides a parameter to redirect to the application namely redirect_uri, can it be localhost or it should be public domain. How developer have to test onedrive rest api. 回答1: You need to map your redirect_uri to localhost of your web server. This can be done by adding it in host file found under \Windows\System32\drivers\etc\hosts . After adding, it should look like 127.0.0.1 MyDomain.com 127.0.0.1 AnotherDomain.com For

Onedrive public sharing link disabled now?

核能气质少年 提交于 2019-12-25 03:29:28
问题 I have been working on Onedrive filepicker API for the past one month. It was working fine till now. But, suddenly I found it bizarre that setting a folder public option is disabled in onedrive. This option let me share the files so that the files can be seen by anyone once it is attached in a mail or something. I'm really sick of it. This documention of onedrive still shows that option but it's invisible. Is there anything wrong with Microsoft onedrive now. 回答1: I just checked the OneDrive