Questions tagged [onedrive]

For PROGRAMMING questions about Microsoft OneDrive. Stack Overflow is NOT FOR GENERAL COMPUTING or CUSTOMER SUPPORT questions about OneDrive. OneDrive, formerly known as SkyDrive, is a cloud-based file hosting service, supported with SDKs and a REST API. (FOR NON-PROGRAMMING QUESTIONS, contact Microsoft customer support.)

OneDrive (formerly known as SkyDrive, Windows Live SkyDrive, and Windows Live Folders) is a file hosting service that allows users to upload and sync files to a cloud storage and then access them from a web browser or their local device.

You can use this tag on questions that are about programming with the OneDrive API's. If you're about to ask your first question here please visit How to Ask because that gives you a better chance of getting your question answered.
Also note that you can browse the current questions for . Use the search capabilites to search for questions with an accepted answer for example about REST.


General support Do note that for general support issues, like questions about your account, contracts, billing, the OneDrive website, use of any of the OneDrive apps among other non-programming related things, you still need to contact Microsoft either directly or via your local representative.


Under this tag questions can be asked about:

OneDrive is part of the Windows Live range of online services and allows users to keep the files private, share them with contacts, or make the files public. Publicly shared files do not require a Microsoft account to access.

In addition to personal cloud storage, Microsoft offers managed business storage as OneDrive for Business.

External links:

These SE communities might be of help if you have user related questions:

2885 questions
7
votes
3 answers

How to detect OneDrive online-only files

Starting from Windows 10 Fall Creators Update (version 16299.15) and OneDrive build 17.3.7064.1005 the On-Demand Files are available for users…
Rom098
  • 2,445
  • 4
  • 35
  • 52
7
votes
1 answer

Sharepoint `Unsupported segment type` when checkin/chekout file

I'd like to use the checkout/checkin feature on the OneDrive REST API: https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_checkout I'm facing two issues: 1st issue - the file info API returns publication property as…
vt.
  • 1,398
  • 7
  • 15
7
votes
1 answer

Directing OneDrive on a device via JavaScript/web app

Is it possibly, from a website, to direct OneDrive on a user's device (iPad) to capture a photo and store it in a specific folder? Is it possible to direct OneDrive on a user's device to create a folder in the same manner? The use case is basically…
Dave
  • 515
  • 5
  • 18
7
votes
0 answers

Does OneDrive for Business support CustomAction/CommandUIExtension as in SharePoint?

I am trying to add a custom action to the ribbon on my OneDrive for Business personal page (https://company-my.sharepoint.com/personal/username page). As far as I know, you can extend or add custom actions, tabs or buttons to the server ribbon on…
7
votes
2 answers

Error when createUploadSession on OneDrive graph api for the special AppFolder

I am attempting to create an upload session in the special app folder for my OneDrive app using the Graph API. My app have the following permissions: Files.ReadWrite Files.ReadWrite.AppFolder offline_access The request looks like…
Allan
  • 71
  • 1
  • 3
7
votes
1 answer

Microsoft OneDrive API client in Perl can't get access token

I created this simple code in Perl to connect Microsoft OneDrive API and list files and folders. But now I'm stopped on getting access token. I read the Microsoft's documentation to find out, but I nothing found. Here is the code: #!/usr/bin/perl…
netdjw
  • 5,419
  • 21
  • 88
  • 162
7
votes
4 answers

Create file to Onedrive programmatically from C#?

I want to create a doc, docx, pptx or excel file from C# direct to my Onedrive account. I have try this but it's not working for me. Anybody have any idea what I did wrong ? Thanks public async Task CreateWordFile() { …
cozmin-calin
  • 421
  • 2
  • 6
  • 19
7
votes
4 answers

Onedrive cors download in javascript

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…
Kai Keeper
  • 81
  • 1
  • 4
7
votes
3 answers

OneDrive Push Notifications

I'm just getting started with the OneDrive API. I have an application that integrates with Google Drive and Dropbox and receives push notifications from these services, and I'm looking to include OneDrive support. Maybe I'm not looking in the right…
Cian
  • 1,579
  • 3
  • 14
  • 28
7
votes
1 answer

Retrieving access token of OAuth 2.0 (implicit grant) from java Desktop Client using SkyDrive REST API.

I am trying to implement OAuth 2.0 implicit grant from java desktop client application using SkyDrive REST API. I use the following code: Desktop.getDesktop().browse(new URL(st.toString()).toURI()); JOptionPane.showMessageDialog(null, "Press ok to…
Zahid Hasan
  • 555
  • 1
  • 6
  • 12
7
votes
1 answer

Access SkyDrive using PHP and OAuth

I would like to access skyDrive using PHP. I want to retreive list of files and folders, download, upload and delete files. I've got a microsoft dev clientID and clientSecret. Can anybody get me started with connecting to skyDrive with OAuth and…
Barry127
  • 1,212
  • 1
  • 12
  • 23
6
votes
2 answers

Is onedrive-sdk-python API still alive?

The author from python-onedrive python-onedrive warns that his library is achrived and obsoleted by official library from microsoft and refers to its git repo sdk What perplexes me is that the archived obsoleted library is being maintained while the…
Alex Deft
  • 2,531
  • 1
  • 19
  • 34
6
votes
1 answer

How to identify if a OneDrive DriveItem permission identity is a group or a user

We are getting the permissions of a driveItem using Microsoft Graph as documented here. Each returned permission object usually contains a grantedTo field that has an IdentitySet as its value. But the issue with that is that each Identity is always…
smotti
  • 233
  • 1
  • 8
6
votes
1 answer

Programmatically detecting if a folder is a cloud local folder

Is there a way of detecting whether a particular folder is being used as the local store for cloud storage in Windows? The default name of the local cloud store folder seems to be the name of the Cloud provider (eg OneDrive, Google Drive, Dropbox)…
SimonKravis
  • 553
  • 1
  • 3
  • 24
6
votes
2 answers

File not found error when using cyberduck CLI for OneDrive

I want to upload encrypted backups on OneDrive using cyberduck to avoid local copys. Having a local file called file.txt I want to upload in folder Backups from OneDrive root, I used this command: duck --username --password
Lion
  • 16,606
  • 23
  • 86
  • 148