Last modified: 2014-10-12 19:01:52 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 T72075, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70075 - Add a way to determine if local file uploads are allowed via the MediaWiki API
Add a way to determine if local file uploads are allowed via the MediaWiki API
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.24rc
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks: 69090
  Show dependency treegraph
 
Reported: 2014-08-27 00:57 UTC by Fabian
Modified: 2014-10-12 19:01 UTC (History)
6 users (show)

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


Attachments

Description Fabian 2014-08-27 00:57:34 UTC
On Wikidata uploads aren't allowed but I couldn't find a way to determine this via the API.

For example the siteinfo property general returns a filesize larger than zero and the fileextensions list valid extensions.

One way to have the filesize return 0 (or negative) if uploads are disabled or let fileextensions return an empty list or introduce a new property.
Comment 1 Brad Jorsch 2014-08-27 15:46:51 UTC
(In reply to Fabian from comment #0)
> One way to have the filesize return 0 (or negative) if uploads are disabled
> or let fileextensions return an empty list or introduce a new property.

A new property would be best: I'd recommend something like "uploadsenabled" which reflects the value of $wgEnableUploads, unless the situation is more complicated than that.

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


Navigation
Links