Page MenuHomePhabricator

Upload API documentation
Closed, ResolvedPublic

Description

Author: russblau

Description:
The documentation for "action=upload" currently is incomplete and confusing. The wiki page, http://www.mediawiki.org/wiki/API:Edit_-_Uploading_files, describes an earlier proposed version of the API that is different from what is currently in the software.

The help message (http://en.wikipedia.org/w/api.php) contains at least one clear error: the third bullet reads '* Have the MediaWiki server fetch a file from a URL, using the "url" and "asyncdownload" parameters'; but "asyncdownload" does not appear in the list of accepted parameters.


Version: 1.16.x
Severity: enhancement

Details

Reference
bz21208

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:49 PM
bzimport set Reference to bz21208.

mdale wrote:

The asyncdownload is related to the temporary variable: $wgEnableAsyncDownload
which was set to "false" since it background tasks were not support in windows
... but I believe we can depreciate that as a fix for background task was made
for windows?

matthew.britton wrote:

I have made the documentation at http://www.mediawiki.org/wiki/API:Edit_-_Uploading_files somewhat more up to date. Some information is still missing, partly as I haven't successfully tested the relevant functionality yet.

(In reply to comment #2)

I have made the documentation at
http://www.mediawiki.org/wiki/API:Edit_-_Uploading_files somewhat more up to
date. Some information is still missing, partly as I haven't successfully
tested the relevant functionality yet.

Looks good, thanks!

How (in)?complete is this now?

Bryan.TongMinh wrote:

Looks in pretty good shape now.