According to http://www.silverstripe.org/dataobjectmanager-module-forum/show/281838 the Image_Uploader class that SWFUploadFileIFrameField extends has been removed from the core of SilverStripe 2.4...
So I went ahead and modified SWFUploadFileIFrameField to extend FileIFrameField as per UncleCheese's query in the above post and now get:
Error: Uncaught Exception: Object->__call(): the method 'setsession' does not exist on 'SWFUploadFileIFrameField_Uploader' At line 724 in ...\sapphire\core\Object.php
When I try to leverage the SWFUploadFileIFrameField to perform a large video upload with progress meter.
My DataObject code is as follows:
class TestVideo extends DataObject {
static $db = array(
"Title" => "Varchar(255)"
);
static $has_one = array(
"Video" => "File"
);
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Main", new SWFUploadFileIFrameField('Video','Video','Upload a file'));
return $fields;
}
}
I am using the latest trunk of SWFUpload extension. Is it truly 2.4 compatible && I'm implementing it wrongly?? Or does the code need to be updated/tested on 2.4? Please let me know if anyone has it working.
Thanks!
~ Brice