-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Image upload fails #184
Comments
I had been happily using V0.30 of wiki-java since 2013 until I hit this problem uploading svg images. Hoping it would fix it I upgraded to the latest version, but same problem. This leads me to suspect that the issue is not with wiki-java API but with the Wikipedia/Wikimedia implementation that is being called. |
@easty77 Yes, they probably deprecated some APIs and wiki-java was not prepared for it. |
So issue is in creating of POST parameters.
I am proposing change to something like:
|
PR in #185 |
Fix works well for me regarding the missing token error. Thank you. However for one of the 5 files I loaded to test I received the following error: I am calling the wiki-java API directly in a Java application. |
@easty77 Which error? (I don't see any). And which tool you are using? (I am testing this in Vicuna) |
Edited answer above with requested details. |
@easty77 It is a random image or concrete image type or file? |
@easty77 I uploaded normally by development version of Vicuna (https://commons.wikimedia.org/wiki/File:Owner_Rolf_Siepmann2.svg) |
ok, let's forget about that glitch. I'll report back if I experience such issues more regularly. |
It's merged. If this issue persists please reopen. |
to resolve MER-C/wiki-java#184
I reproduce the same error as Commonist when uploading images (upload method):
https://commons.wikimedia.org/wiki/Commons_talk:Commonist
The text was updated successfully, but these errors were encountered: