Hi,
Is it possible to know through the API what is the maximum allowed size for an article on a given wiki ? One of the task of my bot is to update maintenance pages with a list of pages containing some types of errors, and sometimes the produced list is bigger than the maximum allowed size for an article (2MB), so the API returns a "contenttoobig" error. Is it possible to know what the limit is before hitting it ? Currently, I'm trimming the result progressively until the API stops complaining about the size...
Nico
https://en.wikipedia.org/wiki/Wikipedia:CHECKWIKI/WPC_002_dump
On Fri, Jun 24, 2016 at 11:58 AM, Nicolas Vervelle nvervelle@gmail.com wrote:
Is it possible to know through the API what is the maximum allowed size for an article on a given wiki ?
It doesn't look like it. But it would be easy enough to expose $wgMaxArticleSize through ApiQuerySiteinfo. File a task in Phabricator?
Thanks Brad for the answer.
I've created a task in phabricator, T138669, https://phabricator.wikimedia.org/T138669
Nico
On Fri, Jun 24, 2016 at 6:41 PM, Brad Jorsch (Anomie) <bjorsch@wikimedia.org
wrote:
On Fri, Jun 24, 2016 at 11:58 AM, Nicolas Vervelle nvervelle@gmail.com wrote:
Is it possible to know through the API what is the maximum allowed size for an article on a given wiki ?
It doesn't look like it. But it would be easy enough to expose $wgMaxArticleSize through ApiQuerySiteinfo. File a task in Phabricator?
-- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org