Update uploadfield.md

Fix 403 forbidden error: Action 'Form' isn't allowed on class GalleryPage_Controller.
This commit is contained in:
Marijn Kampf 2014-05-15 08:55:16 +01:00
parent c3c3145d37
commit 5daec94830

View File

@ -341,6 +341,7 @@ gallery the below code could be used:
// In GalleryPage.php
class GalleryPage extends Page {}
class GalleryPage_Controller extends Page_Controller {
private static $allowed_actions = array('Form');
public function Form() {
$fields = new FieldList(
new TextField('Title', 'Title', null, 255),