What exactly are you trying to automatically upload to Wikipedia?
On Feb 12, 2010 5:58 AM, "Heramb Lele" heramb.forums@googlemail.com wrote:
Thanx Bryan and Platonides for the reply
I am still couldnt manage to upload the image
Could you please elaborate more what should be done
I tried to access the page http://en.wikipedia.org/wiki/Special:Upload
it displays
From Wikipedia, the free encyclopedia
Jump to: navigation http://en.wikipedia.org/wiki/Special:Upload#column-one, search http://en.wikipedia.org/wiki/Special:Upload#searchInput
The action you have requested is limited to Autoconfirmed usershttp://en.wikipedia.org/wiki/Wikipedia:Autoconfirmed_users, Administrators http://en.wikipedia.org/wiki/Wikipedia:Administrators, Confirmed users http://en.wikipedia.org/wiki/Wikipedia:User_access_levels.
Return to Main Page http://en.wikipedia.org/wiki/Main_Page.
On Thu, Feb 11, 2010 at 7:45 PM, Bryan Tong Minh bryan.tongminh@gmail.com wrote:
Hi,
...
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
I want to automatiocally upload image file .jpg through api action=upload
On Fri, Feb 12, 2010 at 12:33 PM, John Du Hart compwhizii@gmail.com wrote:
What exactly are you trying to automatically upload to Wikipedia?
On Feb 12, 2010 5:58 AM, "Heramb Lele" heramb.forums@googlemail.com wrote:
Thanx Bryan and Platonides for the reply
I am still couldnt manage to upload the image
Could you please elaborate more what should be done
I tried to access the page http://en.wikipedia.org/wiki/Special:Upload
it displays From Wikipedia, the free encyclopedia Jump to: navigationhttp://en.wikipedia.org/wiki/Special:Upload#column-one, search http://en.wikipedia.org/wiki/Special:Upload#searchInput
The action you have requested is limited to Autoconfirmed usershttp://en.wikipedia.org/wiki/Wikipedia:Autoconfirmed_users, Administrators http://en.wikipedia.org/wiki/Wikipedia:Administrators, Confirmed users http://en.wikipedia.org/wiki/Wikipedia:User_access_levels.
Return to Main Page http://en.wikipedia.org/wiki/Main_Page.
On Thu, Feb 11, 2010 at 7:45 PM, Bryan Tong Minh bryan.tongminh@gmail.com wrote:
Hi,
...
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Hey I am still can not manage to upload
Is it possible with API or i need to do special:upload can you please tell me how does iit work or any link ?
On Fri, Feb 12, 2010 at 12:55 PM, Heramb Lele heramb.forums@googlemail.comwrote:
I want to automatiocally upload image file .jpg through api action=upload
On Fri, Feb 12, 2010 at 12:33 PM, John Du Hart compwhizii@gmail.comwrote:
What exactly are you trying to automatically upload to Wikipedia?
On Feb 12, 2010 5:58 AM, "Heramb Lele" heramb.forums@googlemail.com wrote:
Thanx Bryan and Platonides for the reply
I am still couldnt manage to upload the image
Could you please elaborate more what should be done
I tried to access the page http://en.wikipedia.org/wiki/Special:Upload
it displays From Wikipedia, the free encyclopedia Jump to: navigationhttp://en.wikipedia.org/wiki/Special:Upload#column-one, search http://en.wikipedia.org/wiki/Special:Upload#searchInput
The action you have requested is limited to Autoconfirmed usershttp://en.wikipedia.org/wiki/Wikipedia:Autoconfirmed_users, Administrators http://en.wikipedia.org/wiki/Wikipedia:Administrators, Confirmed users http://en.wikipedia.org/wiki/Wikipedia:User_access_levels.
Return to Main Page http://en.wikipedia.org/wiki/Main_Page.
On Thu, Feb 11, 2010 at 7:45 PM, Bryan Tong Minh < bryan.tongminh@gmail.com> wrote:
Hi,
...
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/2/12 Heramb Lele heramb.forums@googlemail.com:
Hey I am still can not manage to upload
Is it possible with API or i need to do special:upload can you please tell me how does iit work or any link ?
It appears Wikipedia only allows autoconfirmed users to upload. You probably want to upload to Commons (commons.wikimedia.org) instead, but they also require that you be logged in to upload files. There's documentation about logging in through the API at http://www.mediawiki.org/wiki/API:Login
Roan Kattouw (Catrope)
I have a mediawiki server running on some machine and I want to upload some images to it I tried to login to that server through api (action:login) and also tried to upload through api(action:upload) with Content-Type: multipart/form-data and with proper encoding but didnt have success
Is there any other reason that I couldnt upload images as I have to use some other method to upload images
On Fri, Feb 12, 2010 at 5:41 PM, Roan Kattouw roan.kattouw@gmail.comwrote:
2010/2/12 Heramb Lele heramb.forums@googlemail.com:
Hey I am still can not manage to upload
Is it possible with API or i need to do special:upload can you please tell me how does iit work or any link ?
It appears Wikipedia only allows autoconfirmed users to upload. You probably want to upload to Commons (commons.wikimedia.org) instead, but they also require that you be logged in to upload files. There's documentation about logging in through the API at http://www.mediawiki.org/wiki/API:Login
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On Fri, Feb 12, 2010 at 6:00 PM, Heramb Lele heramb.forums@googlemail.com wrote:
but didnt have success
There is nothing that we can do with "didn't have success". What do you mean with that? Did you get an error messsage? Does the API return an Ok result but does the file still not appear?
Afer executing api upload I get the following _____________________ This module only accepts POST requests. Parameters: target - User to send email to subject - Subject header text - Mail body token - A token previously acquired via prop=info ccme - Send a copy of this mail to me Example: api.php?action=emailuser&target=WikiSysop&text=Content api.php?action=emailuser&target=WikiSysop&text=Content
* action=watch * Add or remove a page from/to the current user's watchlist
This module requires read rights. This module requires write rights. Parameters: title - The page to (un)watch unwatch - If set the page will be unwatched rather than watched Examples: api.php?action=watch&title=Main_Page api.php?action=watch&title=Main_Page api.php?action=watch&title=Main_Page&unwatch api.php?action=watch&title=Main_Page&unwatch
* action=patrol * Patrol a page or revision.
This module requires read rights. This module requires write rights. Parameters: token - Patrol token obtained from list=recentchanges rcid - Recentchanges ID to patrol Example: api.php?action=patrol&token=123abc&rcid=230672766 api.php?action=patrol&token=123abc&rcid=230672766
* action=import * Import a page from another wiki, or an XML file
This module requires read rights. This module requires write rights. This module only accepts POST requests. Parameters: token - Import token obtained through prop=info summary - Import summary xml - Uploaded XML file interwikisource - For interwiki imports: wiki to import from One value: interwikipage - For interwiki imports: page to import fullhistory - For interwiki imports: import the full history, not just the current version templates - For interwiki imports: import all included templates as well namespace - For interwiki imports: import to this namespace One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 Examples: Import [[meta:Help:Parserfunctions]] to namespace 100 with full history:
api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory&token=123ABC api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory&token=123ABC
*** *** *** *** *** *** *** *** *** *** Permissions *** *** *** *** *** *** *** *** *** ***
* writeapi * Use of the write API Granted to: all, user, bot * apihighlimits * Use higher limits in API queries (Slow queries: 500 results; Fast queries: 5000 results). The limits for slow queries also apply to multivalue parameters. Granted to: bot, sysop
*** *** *** *** *** *** *** *** *** *** Formats *** *** *** *** *** *** *** *** *** ***
* format=json * Output data in JSON format
This module requires read rights. Parameters: callback - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=json api.php?action=query&meta=siteinfo&siprop=namespaces&format=json
* format=jsonfm * Output data in JSON format (pretty-print in HTML)
This module requires read rights. Parameters: callback - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=jsonfm api.php?action=query&meta=siteinfo&siprop=namespaces&format=jsonfm
* format=php * Output data in serialized PHP format
This module requires read rights. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=php api.php?action=query&meta=siteinfo&siprop=namespaces&format=php
* format=phpfm * Output data in serialized PHP format (pretty-print in HTML)
This module requires read rights. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=phpfm api.php?action=query&meta=siteinfo&siprop=namespaces&format=phpfm
* format=wddx * Output data in WDDX format
This module requires read rights. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddx api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddx
* format=wddxfm * Output data in WDDX format (pretty-print in HTML)
This module requires read rights. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddxfm api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddxfm
* format=xml * Output data in XML format
This module requires read rights. Parameters: xmldoublequote - If specified, double quotes all attributes and content. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml
* format=xmlfm * Output data in XML format (pretty-print in HTML)
This module requires read rights. Parameters: xmldoublequote - If specified, double quotes all attributes and content. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=xmlfm api.php?action=query&meta=siteinfo&siprop=namespaces&format=xmlfm
* format=yaml * Output data in YAML format
This module requires read rights. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=yaml api.php?action=query&meta=siteinfo&siprop=namespaces&format=yaml
* format=yamlfm * Output data in YAML format (pretty-print in HTML)
This module requires read rights. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=yamlfm api.php?action=query&meta=siteinfo&siprop=namespaces&format=yamlfm
* format=rawfm * Output data with the debuging elements in JSON format (pretty-print in HTML)
This module requires read rights. Parameters: callback - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=rawfm api.php?action=query&meta=siteinfo&siprop=namespaces&format=rawfm
* format=txt * Output data in PHP's print_r() format
This module requires read rights. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=txt api.php?action=query&meta=siteinfo&siprop=namespaces&format=txt
* format=txtfm * Output data in PHP's print_r() format (pretty-print in HTML)
This module requires read rights. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=txtfm api.php?action=query&meta=siteinfo&siprop=namespaces&format=txtfm
* format=dbg * Output data in PHP's var_export() format
This module requires read rights. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbg api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbg
* format=dbgfm * Output data in PHP's var_export() format (pretty-print in HTML)
This module requires read rights. Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbgfm api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbgfm
*** Credits: *** API developers: Roan Kattouw <Firstname>.<Lastname>@home.nl (lead developer Sep 2007-present) Victor Vasiliev - vasilvv at gee mail dot com Bryan Tong Minh - bryan . tongminh @ gmail . com Yuri Astrakhan <Firstname><Lastname>@gmail.com (creator, lead developer Sep 2006-Sep 2007)
Please send your comments, suggestions and questions to mediawiki-api@lists.wikimedia.org or file a bug report at http://bugzilla.wikimedia.org/ http://bugzilla.wikimedia.org/ </error> </api> </pre> </body> </html> <!-- Served in 0.394 secs. --> ________________________________
Bryan Tong Minh wrote:
On Fri, Feb 12, 2010 at 6:00 PM, Heramb Lele heramb.forums@googlemail.com wrote:
but didnt have success
There is nothing that we can do with "didn't have success". What do you mean with that? Did you get an error messsage? Does the API return an Ok result but does the file still not appear?
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On Mon, Feb 15, 2010 at 10:10 AM, Herulee heramb.forums@googlemail.com wrote:
This module only accepts POST requests.
And did you use a POST request?
yes I did
This response seems to be a general help As 'This module only accepts POST requests.' is giving the information about how to send the email
This module only accepts POST requests. Parameters: target - User to send email to subject - Subject header text - Mail body token - A token previously acquired via prop=info ccme - Send a copy of this mail to me Example: api.php?action=emailuser& target=WikiSysop&text=Content api.php?action=emailuser&target=WikiSysop&text=Content
* action=watch * Add or remove a page from/to the current user's watchlist
On Mon, Feb 15, 2010 at 10:59 AM, Bryan Tong Minh bryan.tongminh@gmail.comwrote:
On Mon, Feb 15, 2010 at 10:10 AM, Herulee heramb.forums@googlemail.com wrote:
This module only accepts POST requests.
And did you use a POST request?
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On Mon, Feb 15, 2010 at 12:10 PM, Heramb Lele heramb.forums@googlemail.com wrote:
yes I did
This response seems to be a general help As 'This module only accepts POST requests.' is giving the information about how to send the email
Can you then in a pastebin your entire HTTP request, so that we can look at it and see what is wrong?
Bryan
Here is the request
The header is Content-Type: multipart/form-data; boundary=AxYfa14xsbv5
The date is
--AxYfa14xsbv5 Content-Disposition: form-data; name="action"
upload --AxYfa14xsbv5 Content-Disposition: file; filename="D4215_0_0.jpg" Content-Type: image/jpg Content-Transfer-Encoding: Base64
/9j/4A== --AxYfa14xsbv5 Content-Disposition: form-data; name="token"
+\ --AxYfa14xsbv5--
Encoded contents of the image file with base64 encoding
I could create the page with same kind of reqest yday but today i couldnt
action=parse, action:query works fine
On Mon, Feb 15, 2010 at 1:21 PM, Bryan Tong Minh bryan.tongminh@gmail.comwrote:
On Mon, Feb 15, 2010 at 12:10 PM, Heramb Lele heramb.forums@googlemail.com wrote:
yes I did
This response seems to be a general help As 'This module only accepts POST requests.' is giving the information about how to send the email
Can you then in a pastebin your entire HTTP request, so that we can look at it and see what is wrong?
Bryan
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On Mon, Feb 15, 2010 at 1:44 PM, Heramb Lele heramb.forums@googlemail.com wrote:
Here is the request
You are missing the filename parameter, which is mandatory. (This is something different from the filename in the file field, which is not used)
Bryan
After adding the filename parameter
Now I can see in the response from the server
'Unknown_action'
On Mon, Feb 15, 2010 at 1:47 PM, Bryan Tong Minh bryan.tongminh@gmail.comwrote:
On Mon, Feb 15, 2010 at 1:44 PM, Heramb Lele heramb.forums@googlemail.com wrote:
Here is the request
You are missing the filename parameter, which is mandatory. (This is something different from the filename in the file field, which is not used)
Bryan
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
The response is
HTTP/1.1 200 OK\r\n Date: Mon, 15 Feb 2010 13:37:01 GMT\r\n Server: Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6\r\n X-Powered-By: PHP/5.2.6\r\n MediaWiki-API-Error: unknown_action\r\n Expires: Thu, 01 Jan 1970 00:00:01 GMT\r\n Cache-Control: s-maxage=0, must-revalidate, max-age=0\r\n Vary: Accept-Encoding\r\n X-Vary-Options: Accept-Encoding;list-contains=gzip\r\n Transfer-Encoding: chunked\r\n Content-Type: text/html; charset=utf-8\r\n
On Mon, Feb 15, 2010 at 2:39 PM, Heramb Lele heramb.forums@googlemail.comwrote:
After adding the filename parameter
Now I can see in the response from the server
'Unknown_action'
On Mon, Feb 15, 2010 at 1:47 PM, Bryan Tong Minh <bryan.tongminh@gmail.com
wrote:
On Mon, Feb 15, 2010 at 1:44 PM, Heramb Lele heramb.forums@googlemail.com wrote:
Here is the request
You are missing the filename parameter, which is mandatory. (This is something different from the filename in the file field, which is not used)
Bryan
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/2/15 Heramb Lele heramb.forums@googlemail.com:
After adding the filename parameter
Now I can see in the response from the server
'Unknown_action'
You need to be logged in, pass the cookies that you received from action=login, and ensure that your version of MediaWiki really has action=upload.
Roan Kattouw (Catrope)
ahh ok
After giving a try ..just to know if mediawiki has action=upload or not
e.g in the browser http://mediawiki/mediawiki/api.php?action=upload it gives
<?xml version="1.0"?> <api> <error code="unknown_action" info="Unrecognized value for parameter 'action': upload" xml:space="preserve">
****************************************************************** ** ** ** This is an auto-generated MediaWiki API documentation page ** ** ** ** Documentation and Examples: ** ** http://www.mediawiki.org/wiki/API ** ** ** ******************************************************************
etc...
..I think my mediawiki doesnt have action=upload.
So is it possible to run this action if I copy APIUploadFile.php in includes/api or are there some more settings for this?
Sorry but I really want to have remote upload functionality ,so I am posting so many questions here
Roan Kattouw-2 wrote:
2010/2/15 Heramb Lele heramb.forums@googlemail.com:
After adding the filename parameter
Now I can see in the response from the server
'Unknown_action'
You need to be logged in, pass the cookies that you received from action=login, and ensure that your version of MediaWiki really has action=upload.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/2/15 Herulee heramb.forums@googlemail.com:
ahh ok
After giving a try ..just to know if mediawiki has action=upload or not
e.g in the browser http://mediawiki/mediawiki/api.php?action=upload it gives
<?xml version="1.0"?>
<api> <error code="unknown_action" info="Unrecognized value for parameter 'action': upload" xml:space="preserve">
The thing is older versions of MediaWiki lie and say action=upload doesn't exist when you really just don't have permission to use it.
So is it possible to run this action if I copy APIUploadFile.php in includes/api or are there some more settings for this?
Best course of action is to check if you have includes/api/ApiUpload.php . If you don't, you'll have to wait for MediaWiki 1.16 to be released before you can use the upload API, 1.15.1 doesn't have it yet.
Roan Kattouw (Catrope)
No it doest have.. Is there any other way to upload files ?
and ne idea when will 1.16 be out?
Roan Kattouw-2 wrote:
2010/2/15 Herulee heramb.forums@googlemail.com:
ahh ok
After giving a try ..just to know if mediawiki has action=upload or not
e.g in the browser http://mediawiki/mediawiki/api.php?action=upload it gives
<?xml version="1.0"?>
<api> <error code="unknown_action" info="Unrecognized value for parameter 'action': upload" xml:space="preserve">
The thing is older versions of MediaWiki lie and say action=upload doesn't exist when you really just don't have permission to use it.
So is it possible to run this action if I copy APIUploadFile.php in includes/api or are there some more settings for this?
Best course of action is to check if you have includes/api/ApiUpload.php . If you don't, you'll have to wait for MediaWiki 1.16 to be released before you can use the upload API, 1.15.1 doesn't have it yet.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/2/15 Herulee heramb.forums@googlemail.com:
No it doest have.. Is there any other way to upload files ?
By hand through Special:Upload, but that's not very friendly for scripts or bots.
and ne idea when will 1.16 be out?
"When it's ready"
Roan Kattouw (Catrope)
ahh ok
So titll the time mediawiki 1.16 is not out Need to do uploads by hand
RIGHT?
Roan Kattouw-2 wrote:
2010/2/15 Herulee heramb.forums@googlemail.com:
No it doest have.. Is there any other way to upload files ?
By hand through Special:Upload, but that's not very friendly for scripts or bots.
and ne idea when will 1.16 be out?
"When it's ready"
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On Mon, Feb 15, 2010 at 5:14 PM, Herulee heramb.forums@googlemail.com wrote:
ahh ok
So titll the time mediawiki 1.16 is not out Need to do uploads by hand
RIGHT?
No, you can emulate the stuff your browser is sending to SpecialUpload. There are certain libraries such as mwclient and pywikipedia that can do this for you.
Hello Bryan,
Thanx for the reply Do you know where can I find a good example to use it so that I can try using it
Bryan Tong Minh wrote:
On Mon, Feb 15, 2010 at 5:14 PM, Herulee heramb.forums@googlemail.com wrote:
ahh ok
So titll the time mediawiki 1.16 is not out Need to do uploads by hand
RIGHT?
No, you can emulate the stuff your browser is sending to SpecialUpload. There are certain libraries such as mwclient and pywikipedia that can do this for you.
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Hello,
Doest it mean that I should query mediawiki through mwclient to upload images?
On Thu, Feb 25, 2010 at 10:34 AM, Herulee heramb.forums@googlemail.comwrote:
Hello Bryan,
Thanx for the reply Do you know where can I find a good example to use it so that I can try using it
Bryan Tong Minh wrote:
On Mon, Feb 15, 2010 at 5:14 PM, Herulee heramb.forums@googlemail.com wrote:
ahh ok
So titll the time mediawiki 1.16 is not out Need to do uploads by hand
RIGHT?
No, you can emulate the stuff your browser is sending to SpecialUpload. There are certain libraries such as mwclient and pywikipedia that can do this for you.
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
-- View this message in context: http://old.nabble.com/Image-uploading-tp27544560p27714382.html Sent from the WikiMedia API mailing list archive at Nabble.com.
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
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
whats going wrong here?
Herulee wrote:
Hello,
Doest it mean that I should query mediawiki through mwclient to upload images?
On Thu, Feb 25, 2010 at 10:34 AM, Herulee heramb.forums@googlemail.comwrote:
Hello Bryan,
Thanx for the reply Do you know where can I find a good example to use it so that I can try using it
Bryan Tong Minh wrote:
On Mon, Feb 15, 2010 at 5:14 PM, Herulee heramb.forums@googlemail.com wrote:
ahh ok
So titll the time mediawiki 1.16 is not out Need to do uploads by hand
RIGHT?
No, you can emulate the stuff your browser is sending to SpecialUpload. There are certain libraries such as mwclient and pywikipedia that can do this for you.
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
-- View this message in context: http://old.nabble.com/Image-uploading-tp27544560p27714382.html Sent from the WikiMedia API mailing list archive at Nabble.com.
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
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')
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
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@googlemail.comwrote:
Ok done I succeeded to upload
Can you please help me to solve 2 problems
- It uploads the image with the name somenumbers!imagename
Is it possible to remove those numbers and exclametry mark
- 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
-- 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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org