Method requires write privileges 99

Jul 31, 2007 at 8:29 PM
Hello,
I start to use this library, good library !!

I try to uplaod a file, but I get the message :

Insufficient permissions. Method requires write privileges; none granted. (99)

I've got one page for my authetication, as :

Flickr flickr = new Flickr(ApiKey, SharedSecret);
string url = flickr.AuthCalcWebUrl(AuthLevel.Write);
Response.Redirect(url);

That redirect me to another page, as :

string frob = Request.QueryString["frob"];
Flickr flickr = new Flickr(ApiKey, SharedSecret);
Auth auth = flickr.AuthGetToken(frob);

If I checked the auth.Permissions, i've got "Write".
But when i call the UploadPicture method, as :

string file = "C:\\1831.jpg";
string title = "Test Photo";
string descripton = "This is the description of the photo";
string tags = "tag1,tag2,tag3";
string photoId = flickr.UploadPicture(file, title, descripton, tags);
I 've got the message :

FlickrNet.FlickrApiException: Insufficient permissions. Method requires write privileges; none granted. (99)

Anybody can help me ?
thx

Coordinator
Jul 31, 2007 at 9:30 PM
You need to actually set the AuthToken once you've retreived it I'm afraid.

e.g.
Auth auth = flickr.AuthGetToken(frob);
flickr.AuthToken = auth.Token;
Aug 1, 2007 at 6:10 PM
arf !
so stupid
thanks for your help