首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pywikibot无法上传大型文件

pywikibot无法上传大型文件
EN

Stack Overflow用户
提问于 2018-06-15 05:37:54
回答 1查看 195关注 0票数 0

在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做这件事?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-21 09:29:58

missingparam: One of the parameters "filekey", "file" and "url" is required.错误意味着服务器没有收到要上载的文件。这是由于PHP服务器软件(apache或nginx)和PHP对服务器的安全限制造成的。有关说明,请参见为文件上载配置文件uploads#Set最大大小

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50869647

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档