Thread:Project:Support desk/Editing wikipedia with java api jwbf/reply (2)

Thanks !

and i take this chance and i ask another question, that is flying in my mind

i use the java api jwbf to query the wiki,

and i was wondering why my code is wrong when i try to upload a file:

MediaWikiBot b = new MediaWikiBot("https://commons.wikimedia.org/w/api.php"); b.login("my user", "my pass"); File file = new File("my file url"); SimpleFile sp = new SimpleFile(file); FileUpload fu = new FileUpload(sp, b); b.performAction(fu);

The code compiles well, but when i log in the wikipedia commons page, i don't find the new file i'm uploading

Regards !!!