Last modified: 2014-10-08 14:42:00 UTC
The radio button and inputs for file and URL upload have the same IDs. <table id="mw-htmlform-source"> <tbody> <tr class="mw-htmlform-field-UploadSourceField"> <td class="mw-label"> <label for="wpUploadFile">Source file:</label> <input name="wpSourceType" type="radio" id="wpUploadFile" value="File" checked=""> </td> <td class="mw-input"> <input id="wpUploadFile" name="wpUploadFile" size="60" type="file"> </td> </tr> <tr class="mw-htmlform-field-UploadSourceField"> <td class="mw-label"> <label for="wpUploadFileURL">Source URL:</label> <input name="wpSourceType" type="radio" id="wpUploadFileURL" value="url"> </td> <td class="mw-input"> <input id="wpUploadFileURL" name="wpUploadFileURL" size="60"> </td> </tr> </tbody> </table> Not sure if this intended but the radios uses to have the ids wpSourceTypeurl and wpSourceTypeFile.
* used to (as of MW 1.16)
Already fixed. https://gerrit.wikimedia.org/r/#/c/88443/ *** This bug has been marked as a duplicate of bug 40889 ***