FLUID-4726: Cannot change uploader's button text through the string options.

Metadata

Source
FLUID-4726
Type
Bug
Priority
Critical
Status
Open
Resolution
N/A
Assignee
Colin Clark
Reporter
Justin Obara
Created
2012-07-06T11:07:25.565-0400
Updated
2021-07-29T01:43:35.743-0400
Versions
  1. 1.5
  2. 2.0
  3. 3.0
Fixed Versions
N/A
Component
  1. Uploader

Description

The uploader has string options for the various button text.
https://github.com/fluid-project/infusion/blob/master/src/webapp/components/uploader/js/Uploader.js#L580-586

However, it appears as though not all of them work. For example the "browse" strings never get used, but rather the text from the template.
The only one that I've found to be working was the "addMore" text.

Attachments

Comments

  • Saksham Saxena commented 2016-03-06T11:54:53.756-0500

    "Browse Files" do get used when you add files and remove all of them, then this string is used. There was actually an inconsistency of this string only, because the template has "Browse files" and the string has a capital F. Because of this tiny difference, the text was flowing out of the button. Before and after scenarios are attached for reference. The other strings, maybe over ambitiously written, are anyways relatively long and would go beyond the width of the button (fixed).

    UPDATE : So the "Stop Upload" button is hardcoded and is toggled through classes only. There is no "Resume Upload" and "Cancel Remaining Uploads" functionality as of now. Usage of "Remove" is unclear as well.