Page MenuHomePhabricator

Enable "tags" form field in JS for Special:Upload
Closed, ResolvedPublic

Description

[21:32:52] <vanishedh> Can someone report an issue for me on phabricator? The issue is that in the MediaWiki API JS here https://doc.wikimedia.org/mediawiki-core/master/js/source/upload.html the fieldsAllowed variable is missing tags: true, so applying change tags with the upload function is not possible

https://commons.wikimedia.org/w/api.php?action=help&modules=upload shows we allow adding change tags

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Krinkle renamed this task from upload.js doesn't allow adding tags to Enable "tags" form field in JS for Special:Upload.Jan 21 2020, 9:20 PM
Krinkle subscribed.

Adding that key won'd do anything as far as I know, given the Special:Upload form doesn't have this field.

Is this for a gadget? A third-party extension?

Krinkle changed the task status from Open to Stalled.Jan 21 2020, 9:21 PM
Krinkle triaged this task as Medium priority.
Krinkle added a project: Multimedia.

Adding that key won'd do anything as far as I know, given the Special:Upload form doesn't have this field.

Is this for a gadget? A third-party extension?

Honestly no idea. They wouldn't report the issue themselves, so it's hard to ask vanishedh what the actual use case was

I'm certainly not going to lose any sleep if this gets declined etc

Change #1216840 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] resources: Allow tags and watchlistexpiry params via mw.api.Upload

https://gerrit.wikimedia.org/r/1216840

Umherirrender changed the task status from Stalled to Open.Dec 9 2025, 7:12 PM
Umherirrender claimed this task.
Umherirrender subscribed.

Added as part of 05c2c65ab9f4f30439de5282fe0d86384e8ae01a for the api and without UI part, use wpChangeTags form field in gadget to provide the change tags.

Api supports the tags paramter, so no need to block it via mw.Api

Change #1216840 merged by jenkins-bot:

[mediawiki/core@master] resources: Allow tags and watchlistexpiry params for upload via mw.Api

https://gerrit.wikimedia.org/r/1216840