> Is %2B%5C really the value you're sending as the token?
 
Yes.

> %2B%5C is the token for non-logged in users. Which don't use to be able
> to upload files. If you happen to get a token like it when you request
> it, you're not properly logged in (check you are sending the cookies).
I'm logged in and I'm sending the cookie.
I've used the same login and receiveEditToken methods I've also used to generate pages (works fine in that case).
In New-Upload Branch and in the trunk the token is allways +\
I've also used the same code, to generate pages in MW 1.14 an in that version I allways get a real token, not equal +\

Greetings


Von: Platonides <platonides@gmail.com>
An: MediaWiki API announcements & discussion <mediawiki-api@lists.wikimedia.org>
Gesendet: Dienstag, den 11. August 2009, 00:17:36 Uhr
Betreff: Re: [Mediawiki-api] WG: Image upload fails even with example Request

stephanheyne-wg wrote:
> Ok, even in the trunk the same "fetchfileerror" occures by using a url
> to upload.
> Here are my used post parameters (the line breaks are only for better
> reading and will not be submitted)  :

>
> &action=upload
> &filename=Wiki.png
> &url=http%3A//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png
> &asyncdownload=true
> &token=%2B%5C
> &format=xml
>

>
> I'm not sure what the value of asyncdownload should be: true/false or 1/0.
> >
> Naturally the edit token will be be requestet an isn't a constant value.
>

>
> What's wrong?
>

>
> Stephan

Is %2B%5C really the value you're sending as the token?
%2B%5C is the token for non-logged in users. Which don't use to be able
to upload files. If you happen to get a token like it when you request
it, you're not properly logged in (check you are sending the cookies).


_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api