New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot upload file #38
Comments
Hmm maybe. With the latest mediawiki version that is downloadable form mediawiki.org (1.23) I've no problems with uploading new images. I could offer a line of debug logging to get more details about this problem. |
They use version 1.25, see http://commons.wikimedia.org/wiki/Special:Version |
I know, have you tried to enable debug logging with the patch above? |
Yes. Guess log level should be higher.
|
A first try to to follow this error hint and move the 'token' to post body causes a regression with 1.23 and older. |
Clearly, but don't know how. Maybe its more easy for you. |
I hope this helps |
Nearly, now I get a badtoken error. And there is a test failure.
|
It's reproduceable with the release of mw 1.24 from yesterday (2014-11-26), I try to check this in the next days. Or if you want to help with a patch.. 😉 |
does this patch help? I tend to close this issue and create an new release as fast as possible. |
Yes, your patch works! But my article text wasn't uploaded. I did it with SimpleFile file = new SimpleFile(f.getAbsolutePath());
file.addText(israelnationaltrail.generateCommonsTemplate());
wikiBot.getPerformedAction(new FileUpload(file, wikiBot)); Is this the right way? |
try again please, your snippet is correct. |
Yeap works! Thank you a lot!! |
I'm trying to upload a image to Wikimedia Commons. I already edited some article with your library, works fine now. By executing the following snippet no exceptions appear after network traffic has calm down. No new image is viewable on Commons.
Is this related to Token handling #28 ? The last stament was:
The text was updated successfully, but these errors were encountered: