Last modified: 2014-07-18 12:41:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62121, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60121 - Tweak MediaWiki API siteinfo siprop fileextensions description text
Tweak MediaWiki API siteinfo siprop fileextensions description text
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.23.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
permitted file type file types
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-16 03:44 UTC by MZMcBride
Modified: 2014-07-18 12:41 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2014-01-16 03:44:32 UTC
The MediaWiki Web API (e.g., <https://www.mediawiki.org/w/api.php>) should support outputting a wiki's list of permitted file types when uploading. This information is exposed at [[Special:Upload]], but it'd be useful to have programmatic access to it, I think. Maybe.
Comment 1 Brad Jorsch 2014-01-16 15:18:21 UTC
What list is this, specifically? The only list I see at [[Special:Upload]] is already available via https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=fileextensions
Comment 2 MZMcBride 2014-01-17 06:36:49 UTC
(In reply to comment #1)
> What list is this, specifically? The only list I see at [[Special:Upload]] is
> already available via
> https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=fileextensions

Oh, there it is. Thanks.

The user interface uses the term "file types" ([[mw:Special:Upload]]), as does Commons ([[commons:Commons:File types]]). Consequently I overlooked this part of the API as I didn't think to look for "file extension". I checked the action=upload module, but to no avail. There's probably not a valid bug here, though I do wonder if the discoverability of this siprop is sufficient.
Comment 3 Brad Jorsch 2014-01-17 14:51:46 UTC
The difference is probably because "file extension" is more technically correct while "file types" is more likely to be understood by general users.

As a programmer, I wasn't sure whether "file types" was meaning extensions, MIME types, or what else.
Comment 4 MZMcBride 2014-03-09 05:59:43 UTC
I just went looking for this list again and it took me too long. I tried "file type" and "upload" again before eventually re-remembering that it's "extensions" that I need to search for at <https://commons.wikimedia.org/w/api.php>. Hrmph. I finally got back to <https://commons.wikimedia.org/w/api.php?action=query&meta=siteinfo&siprop=fileextensions>.

Let's please change the siteinfo siprop description text for fileextensions to include a parenthetical:

fileextensions - Returns list of file extensions allowed to be uploaded

becomes...

fileextensions - Returns list of file extensions (file types) allowed to be uploaded
Comment 5 Brad Jorsch 2014-03-10 14:47:22 UTC
(In reply to MZMcBride from comment #4)
> I just went looking for this list again and it took me too long. I tried
> "file type" and "upload" again

"upload" should have worked. As you yourself quoted:

> fileextensions - Returns list of file extensions allowed to be uploaded
                                                                 ^^^^^^

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links