-1

I always get the below error while trying to upload the photo chosen from pictures.

System.ArgumentException: Input parameter 'uploadLocation' is invalid. 'uploadLocation' must be rooted in \shared\transfers. Parameter name: uploadLocation

The path of the image files chosen was:

C:\Data\Users\Public\Pictures\Camera Roll\WP_20130228_001.jpg.

Any idea how I can supply the image file in the expected format?

MainPage.client.BackgroundUploadAsync("ToFolder", new System.Uri("C:\Data\Users\Public\Pictures\Camera Roll\WP_20130228_001.jpg"), OverwriteOption.Overwrite);
lhan
  • 4,585
  • 11
  • 60
  • 105
krrishna
  • 2,050
  • 4
  • 47
  • 101
  • 1
    You're trying to access an image on your PC, from your phone? I don't think it can work like that. Check out the answer on this question, it explains `BackgroundUploadAsync()` a little better, and links to some documentation. – lhan Feb 27 '13 at 19:17
  • Oops, here's the link: http://stackoverflow.com/questions/14482876/wp8-upload-file-to-skydrive – lhan Feb 27 '13 at 21:16

1 Answers1

0

The c drive always come in windows phone also.just by removing the entire path and only giving the file name as parameter has fixed the issue.

krrishna
  • 2,050
  • 4
  • 47
  • 101