This code demonstrates uploading files from a Windows Phone device to SkyDrive (OneDrive) using the LiveConnect SDK
Requirements: Visual Studio Express 2013 for Windows Phone
Live SDK, available here: http://www.microsoft.com/en-us/download/details.aspx?id=40739
You have to create a new app in the Live Connect Development Center: http://msdn.microsoft.com/en-US/en-en/live/ In SkyDriveUpload.cs replace YOUR_APP_ID with your app Id.