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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to