×
Namespaces

Variants
Actions

Talk:SkyDrive - How to upload content on Windows Phone

From Nokia Developer Wiki
Jump to: navigation, search

Contents

Roope - Deprecated events

Please note the events like LiveConnectClient.GetCompleted are deprecated and replaced by async/await -pattern:

http://msdn.microsoft.com/en-us/library/live/hh826550.aspx

_Roope_ 09:59, 14 March 2013 (EET)

Hamishwillee - Roope - thanks!

Sebastiano plans to update this when he has time. If you wanted to do so you'd be welcome!

hamishwillee 06:48, 18 March 2013 (EET)

Hamishwillee - Thanks Sebastiano - work on WP8?

Looks like galazzo has made an update! Thanks very much. OK for me to remove these comments now?

Can you also confirm whether this code works on Windows Phone 8 and if so, which devices tested against? then I could update the categories and metadata appropriately.

Regards

Hamish

hamishwillee 01:22, 3 April 2013 (EEST)

Galazzo -

Hi Hamish,

with this updates the code work on WP8. To work on WP7 you need update some packages as described here : http://blogs.msdn.com/b/bclteam/archive/2012/10/22/using-async-await-without-net-framework-4-5.aspx

I made my lastest test on a Nokia Lumia 820.

I will improve the article with ne woptions as soon as possible.

Regards,

Sebastiano

galazzo 02:26, 3 April 2013 (EEST)

Hamishwillee - Excellent

Hi Sebastiano

Looks like a thorough job - thank you. Testing on 820 is cool - I don't care the device as long as it is WP8 and we record it (as you did) in the articlemetadata.

Regards

H

hamishwillee 02:24, 4 April 2013 (EEST)

Skysoft - BackgroundUploadAsync parameters

Hi everyone, compliments to Galazzo for excellent job. Please could you explain the parameters of BackgroundUploadAsync? I've implemented the example but on skydrive folder I've found an empty file. Maybe I've missed something or there's something wrong. Thanx a lot

D.

Skysoft 19:52, 21 April 2013 (EEST)

Galazzo - BackgroundUploadAsync parameters

Hello,

I've updated the article with a brief deepening on BackgroundUploadAsync's parameters. You can find full reference here. If you need more help you can send me or share your portion of code in order to understand better where is the problem.

Regards,

Sebastiano

galazzo 16:14, 22 April 2013 (EEST)

Skysoft - Not works

Hi Galazzo and thanx for your answer. But it still doesn't work. Better.. I upload the file but is empty... According the parameters shown before, you have missed the parameter "inputStream", and I thik could be fileStream in your code. How can work your code? After try this, I've an error "No overload of method BackgroundUploadAsync accept 4 parameters"... what's happening???

The second problem that I have seen, is that I can't specify my folder for remote upload. It's not really a problem, but I would understand why.

Thanx a lot

D.

Skysoft 23:52, 23 April 2013 (EEST)

Galazzo - Not works

Hi,

I'm sorry, it was a mistake. I wrote wrong reference, but now I've changed. The correct reference link is [1].

About your problem I'm not able to understand your problem without to have an eye on portion of code.

Can you share something ?

Regards,

Sebastiano

galazzo 00:00, 24 April 2013 (EEST)

Skysoft - Done...

Hi Galazzo, thanx again for correction and patience. I've solved simply using UploadAsync instead of BackgroundUploadAsync. In UploadAsync I can specify directly the stream. Now it works. Thanx.

D:

Skysoft 00:17, 25 April 2013 (EEST)

Hamishwillee - Sebastiano - might be worth adding a note about UploadAsync

Up to you!

Regards

H

hamishwillee 09:59, 25 April 2013 (EEST)

MagooChris - Source Code Missing

Nooooooo the source code is missing, and there seems to be a missing bit of code.

Where does "strSaveName" come from?

I get the gist of what I need to do but my question is, do I have to save my file to "/shared/transfers/" or does something put it there automatically?

Thanks,

MagooChris

MagooChris (talk) 15:33, 3 August 2013 (EEST)

Hamishwillee - The source may have moved around and broken the link

Hi MagooChris,

Try searching for it in here

Regards

H

hamishwillee (talk) 04:28, 5 August 2013 (EEST)