Ok done I succeeded to upload
Can you please help me to solve 2 problems
1. It uploads the image with the name somenumbers!imagename Is it possible to remove those numbers and exclametry mark
2. I guess it doesnt make any database entry . So when I try to display the image on the page
'Error: image is invalid or non-existent'
Bryan Tong Minh wrote:
On Fri, Feb 26, 2010 at 2:11 PM, Herulee heramb.forums@googlemail.com wrote:
Hello, Can sombody help me to solve the problem
I tried to upoad the image with mwclient
Site.upload(open('c:/test.jpg'),'test.jpg','testing') but doenst get uploaded and when I see the image c:/test.jpg ..it is blank
Try opening in rb mode, i.e. open('c:/test.jpg', 'rb')
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api