I am using SilverStripe 3.0
I am using UploadField to enable file upload from Silverstripe admin
I have written the following code in my custom Page Type:
static $has_one = array(
"MyIcon1" => "File"
$fields->addFieldToTab("Root.Images", new UploadField('MyIcon1'));
My problem is that on a direct first page load, the upload does not work i.e. if you refresh the page or if you go to this page by typing its url, the file browser window is shown and after you select the file it only closes the file browser does not upload anything.....This happens in mozilla firefox only..
if u go to some other page and come back that is after ajax page loads it starts working....
Any help will be appreciated...Thanks in advance...