Im running into a bit of an issue with the FileDataObjectManager (can't confirm if this is an issue with the ImageDataObjectManager) however when adding a new file and click upload Im getting "An error uploading a file" javascript error message. I than check out the assets directory (file system) and the file has been uploaded (directory too), it also appears in the database.
The code I am using is
$f->addFieldToTab( "Root.Content.ProjectFiles", $item = new FileDataObjectManager(
$this,
"ProjectItem",
"ProjectItem",
"File",
array(),
"getCMSFields",
"",
"SortOrder ASC"
) );
$item->setUploadFolder( sprintf( "projects/%s", str_replace( " ", "-", $this->Title ) ) );
Another thing I have noticed to when using v2.3.6 of SS (r388 dom) is that the assets file listing is now broken.
ERROR [Warning]: Missing argument 3 for ComplexTableField_Item::__construct(), called in /path/to/public_html/projectname/dataobject_manager/code/DataObjectManager.php on line 584 and defined
IN POST /admin/assets/getitem?ID=85&ajax=1