Menu

UploadImage does not work

Help
atav1st
2015-05-04
2016-01-27
  • atav1st

    atav1st - 2015-05-04

    Hello,

    Everything seems to work great with this library, except for the Image Upload. I tried both the UploadImage and UploadImageFromWeb function but none of them work. They throw me this WikiBotException:
    "Error occurred when uploading image "TEST PAGE"."

    More info:
    - I develop with the latest version of mono framework
    - I'm trying to test the upload on test.wikipedia.org (also tried on en.wikipedia.org but the same error appears)
    - The way I write my function: page.UploadImage("/Users/cpt/Documents/Mono/WikiBot/WikiBot/photo.jpg", "photo.jpg", "photo.jpg", "photo.jpg", "photo.jpg");

    Any idea why it doesn't work? Thanks in advance for the help.

     
  • CodeDriller

    CodeDriller - 2016-01-27

    Sorry, I missed this thread.

    UploadImage() function is routinely checked on test.wikipedia.org with .NET framework, it's ok. Not sure about Mono, but I guess it's all right too. Something may be wrong with path: "/Users/cpt/Documents/Mono/WikiBot/WikiBot/photo.jpg"

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.