FlickrNET sdk doesn't upload image in WinRT

Topics: Developer Forum
Aug 15, 2013 at 11:26 AM
I'm trying upload a image choosed by the user. I already have the Access Token and I just call UploadPictureAsync from Flickr class and nothing happen... No exception or image updated!!
FileOpenPicker openPicker = new FileOpenPicker();
    openPicker.ViewMode = PickerViewMode.Thumbnail;
    openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
    openPicker.FileTypeFilter.Add(".jpg");
    openPicker.FileTypeFilter.Add(".jpeg");
    openPicker.FileTypeFilter.Add(".png");
    StorageFile file = await openPicker.PickSingleFileAsync();

    using (Stream fileStream = await file.OpenStreamForReadAsync())
    {
        Flickr flickr = new Flickr(consumerKey, oauthTokenSecret, oauthToken);
        try
        {
            flickr.UploadPictureAsync(fileStream, "Picture", "Upload Test", "Testing FlickrNET", "", false, false, false, ContentType.Photo, SafetyLevel.None, HiddenFromSearch.Hidden,
              x =>
              {
                    if (x.HasError)
                    {
                         Debug.WriteLine(x.Error.Message);
                    }
                    else
                    {
                         Debug.WriteLine("Uploaded Sucessfully");
                    }
              });
        }
        catch (Exception ex)
        {
            Debug.WriteLine(ex.Message);
        }
   }
Coordinator
Sep 13, 2013 at 10:48 PM
I've created a new repository for an experimental release of FlickrNet library, amongst other things for Windows 8.

Check it out here: https://github.com/samjudson/FlickrNet-Experimental

I've just checked in Upload support using async/await. Let me know how it goes.