Hi
Is there size limit restriction in post method using API?
Thanks Mahir
On Mon, Feb 28, 2011 at 11:17 AM, Mohamed Mahir Ahamed Ibrahim mahir78@gmail.com wrote:
Hi
Is there size limit restriction in post method using API?
The post size limit is not restricted by MediaWiki but by PHP and the webserver. On Wikimedia it is something above the 100 MB (as files from 100MB can be uploaded with no problems, afaik).
Bryan
Bryan Thanks for your email. But I think it depends. I can get it working inside wiki sites (after logged in through my js plugin). No matter how big the article is. But If I try outside (wthout logged in) through plain html with javascript using post method it won't work. It stopped after 7086 characters. I have a tool to preview the text. (sending wiki content and it will return html content)
Any Idea? //This is js code i used
$j.post( 'http://ta.wikipedia.org/w/api.php?callback=?', { 'format':'json' ,'action': 'parse', 'text':Temptrans_out }, function( data ) {
var parseddata=data.parse.text.*; $j("#previewbox").html(parseddata);
},"json")
Thanks Mahir
On Mon, Feb 28, 2011 at 4:48 PM, Bryan Tong Minh bryan.tongminh@gmail.comwrote:
On Mon, Feb 28, 2011 at 11:17 AM, Mohamed Mahir Ahamed Ibrahim mahir78@gmail.com wrote:
Hi
Is there size limit restriction in post method using API?
The post size limit is not restricted by MediaWiki but by PHP and the webserver. On Wikimedia it is something above the 100 MB (as files from 100MB can be uploaded with no problems, afaik).
Bryan
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On Sat, Mar 5, 2011 at 11:10 AM, Mohamed Mahir Ahamed Ibrahim mahir78@gmail.com wrote:
Bryan Thanks for your email. But I think it depends. I can get it working inside wiki sites (after logged in through my js plugin). No matter how big the article is. But If I try outside (wthout logged in) through plain html with javascript using post method it won't work. It stopped after 7086 characters. I have a tool to preview the text. (sending wiki content and it will return html content)
I have send several megabytes to the API without problems, so the problem must lie elsewhere.
Bryan
mediawiki-api@lists.wikimedia.org