pywikibot 无法上传大文件
pywikibot fails to upload large files
在 Google Compute Engine 服务器 (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 执行此操作?
missingparam: One of the parameters "filekey", "file" and "url" is required.
错误表示服务器没有收到您要上传的文件。这是由服务器上的安全限制引起的,包括网络服务器软件(apache 或 nginx)和 PHP。有关说明,请参阅 Configuring file uploads#Set maximum size for file uploads。
在 Google Compute Engine 服务器 (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 执行此操作?
missingparam: One of the parameters "filekey", "file" and "url" is required.
错误表示服务器没有收到您要上传的文件。这是由服务器上的安全限制引起的,包括网络服务器软件(apache 或 nginx)和 PHP。有关说明,请参阅 Configuring file uploads#Set maximum size for file uploads。