Closed Bug 1111313 Opened 11 years ago Closed 4 years ago

Allow "Browse…" button-text to be customized, on <input type="file"> button

Categories

(Core :: DOM: Core & HTML, defect, P5)

34 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1662478

People

(Reporter: iashanmugavel, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0 Build ID: 20141127111021 Steps to reproduce: I have added a file upload option in project. Actual results: file upload browse button is coming with undescore or three donts. "Browse_" / "Browse..." Expected results: Expected. "Browse"
Could you attach a testcase, please.
Component: Untriaged → Layout: Form Controls
Flags: needinfo?(iashanmugavel)
Keywords: testcase-wanted
Product: Firefox → Core
Testcase is presumably something like: data:text/html,<input type="file">, which renders as " [Browse...][---textbox---]" It sounds like the reporter wants the ability to customize the "Browse..." text, on the integrated button. I'm not sure if that's possible, offhand. You can use the "value" attribute on <input type="submit"> -- e.g. data:text/html,<input type="submit" value="hello"> -- but that doesn't seem to work for type="file". (In any case, I think this belongs in DOM, not in Layout:FormControls, since changing the label would be done via the DOM somehow (or via some attribute on the <input>). Reclassifying.)
Component: Layout: Form Controls → DOM: Core & HTML
Keywords: testcase-wanted
Summary: browse button → Allow "Browse…" button-text to be customized, on <input type="file"> button
This sounds like a request for a spec change more than anything else, to allow customizing the text. The UI convention for controls that will lead to posing of a dialog is to have an ellipsis after the label, so the default behavior is not going to change from that.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5

Once there's a specification for this we'll consider it.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(iashanmugavel)
Resolution: --- → INVALID

There is, and we implement it.

Resolution: INVALID → DUPLICATE
You need to log in before you can comment on or make changes to this bug.