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
----- Weitergeleitete Mail ---- Von: "stephanheyne-wg@yahoo.de" stephanheyne-wg@yahoo.de An: mediawiki-api@lists.wikimedia.org Gesendet: Montag, den 10. August 2009, 12:43:33 Uhr Betreff: WG: Image upload fails even with example Request
Thanks for the fast answer! I will try the trunk immediately.
Best regards, Stephan
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).
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
Now I have set the user rights of group all: now its allowed to every user to upload files and upload from url. So I can absolutly exclude that cause of defect.
________________________________ Von: "stephanheyne-wg@yahoo.de" stephanheyne-wg@yahoo.de
2009/8/10 stephanheyne-wg@yahoo.de:
Ok, even in the trunk the same "fetchfileerror" occures by using a url to upload.
Might be caused by https://bugzilla.wikimedia.org/show_bug.cgi?id=20087 in which case it'd be a bug in core, not in the API.
Roan Kattouw (Catrope)
I don't know, if I understand it right, but the bug is related to the Special:Upload page, but in the trunk this page works fine... Don't know, whats the reason for the error.
________________________________ Von: Roan Kattouw roan.kattouw@gmail.com An: MediaWiki API announcements & discussion mediawiki-api@lists.wikimedia.org Gesendet: Dienstag, den 11. August 2009, 00:40:43 Uhr Betreff: Re: [Mediawiki-api] WG: Image upload fails even with example Request
2009/8/10 stephanheyne-wg@yahoo.de:
Ok, even in the trunk the same "fetchfileerror" occures by using a url to upload.
Might be caused by https://bugzilla.wikimedia.org/show_bug.cgi?id=20087 in which case it'd be a bug in core, not in the API.
Roan Kattouw (Catrope)
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org