Hello Bryan,
Can not find the solution for this 2 problems
Can you please help me...
On Fri, Feb 26, 2010 at 2:38 PM, Herulee <heramb.forums(a)googlemail.com>wrote;wrote:
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(a)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(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
--
View this message in context:
http://old.nabble.com/Image-uploading-tp27544560p27718393.html
Sent from the WikiMedia API mailing list archive at
Nabble.com.
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api