Click here to Skip to main content
15,891,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi..


I have to upload files from asp.net site to skydrive.

my site will register to skydrive and internally we allow ours users to store their files to skydrive there should be only one account. but we need to differentiate them based on their company name and create different folders to insert files.does this work out....i am searching for this concept from long back. help me in this aspect....

Thanks in Advance...
Posted
Updated 11-Jan-13 21:37pm
v6

1 solution

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.ToString();
        }
        catch (LiveConnectException exception)
        {
            this.infoTextBlock.Text = exception.Message;
        }


http://stackoverflow.com/questions/12891379/skydrive-file-upload-via-net-2-0[^]
 
Share this answer
 
v2
Comments
07405 10-Jan-13 6:01am    
does it needs any reference to be added? how can i login toupload files?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900