charlie_cat
charlie_cat

Reputation: 1850

symfony file-input widget problem

in my RcProfileTableForm.class.php i have this line for file input: $this->widgetSchema['file'] = new sfWidgetFormInputFile(array('label' => 'Profile Pic'),array('class' => 'file_input'));

on my form i have the lable as Profile Pic as above, then the button to click to open the browser to choose the input file and next to that i have the wording "No file chosen".

if you do choose a file, the filename will appear there. my problem now is: i cannot find in all of my code where that string is defined - No file chosen????? i need to make that string RED and cannot find it anywhere...is this a symfony(1.4.5) thing???

can some-one please help? thank you

Upvotes: 2

Views: 595

Answers (1)

Mihail Dimitrov
Mihail Dimitrov

Reputation: 574

just as Piskvor commented - it's a browser-specific. For example Firefox 4.0 doesn't show 'No file chosen' text (it shows text input field).

And the way to apply color (or other style) to the text is using CSS:

.file_input { color: red }

Regards.

Upvotes: 1

Related Questions