When I try to add a FileUploadField to my backend. But it seems to has some problems. I tried it in FF8.0 and Chrome
class Home extends Page {
static $icon = "themes/luckychocolate/images/treeicons/home";
static $db = array();
static $has_one = array(
'TestFile' => 'File'
);
function getCMSFields(){
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.File', new FileUploadField('TestFile', 'Upload a file'));
return $fields;
}
}
That's how the field looks like:
Chrome:
If I click on the tabs, nothing seems to happen. After choosing a file, the filename will be displayed next to the Browse-button and nothing happends. In the "File & Images" section the form looks the same.