在Google (Linux instance-1 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux)上,pywikibot无法上传大型文件,错误如下:
pywikibot.data.api.APIError: missingparam: One of the parameters "filekey", "file" and "url" is required. [help:See https://chinadigitaltimes.net/space/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.] 1 pages read 0 pages written Script terminated successfully.
我需要上传高达2GB的文件。我怎么能用pywikibot做这件事?
发布于 2018-06-21 09:29:58
missingparam: One of the parameters "filekey", "file" and "url" is required.错误意味着服务器没有收到要上载的文件。这是由于PHP服务器软件(apache或nginx)和PHP对服务器的安全限制造成的。有关说明,请参见为文件上载配置文件uploads#Set最大大小。
https://stackoverflow.com/questions/50869647
复制相似问题