Hi
I try to load a form from my pagecontroller via an ajaxrequest.
->mypage/UploadForm
As an answer I get the error message : "Sorry, your session has timed out."
My code:
public static $allowed_actions = array (
'UploadForm'
);
public function UploadForm(){
$thumbField = new UploadField('ProfilePicture', 'Profile picture');
$thumbField->getValidator()->setAllowedExtensions(array('jpg', 'jpeg', 'png', 'gif'));
$thumbField->setConfig('allowedMaxFileNumber', 10);
$form = new Form (
$this,
"ApplyForm",
new FieldList (
//$thumbField
),
new FieldList (
new FormAction('doApply', _t('Angebot.APPLYNOW','Angebot senden'))
)
);
return $form;
}
Don't know what to do.
An help appreciated ;)
Thx in advnace
Lukin