I'm unable to upload in my add view because of an undefined index
Notice (8): Undefined index: Document.id
Seeing as the id isn't yet present within the db table, is it possible to add files to the upload list, then invoke public $components = array('AjaxMultiUpload.Upload'); in an afterSave callback, something like:
function afterSave($created) {
if($created) {
public $components = array('AjaxMultiUpload.Upload');
}
}
This of course doesn't work because there is no component loaded within the controller itself. I couldn't think of another way to do this while adding a new record.
I'm unable to upload in my add view because of an undefined index
Notice (8): Undefined index: Document.id
Seeing as the id isn't yet present within the db table, is it possible to add files to the upload list, then invoke public $components = array('AjaxMultiUpload.Upload'); in an afterSave callback, something like:
function afterSave($created) { if($created) { public $components = array('AjaxMultiUpload.Upload'); } }
This of course doesn't work because there is no component loaded within the controller itself. I couldn't think of another way to do this while adding a new record.
Any ideas?