Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Uploadify in a subclassed form – trouble...

Go to End

2 Posts   809 Views


Community Member, 134 Posts

25 February 2011 at 1:06am

Hi there

I'm trying to use Uploadify in a subclassed form. My form constructor is looking like this:

function __construct($controller, $name) {
		$Uploadify = new FileUploadField('Picture', 'Some title', array (
		'buttonText' => 'Click me!'
		$fields = new FieldSet(
			new TextField('FirstName', 'First name'),
         	new EmailField('Email', 'Email address'),
      	$actions = new FieldSet(
         	new FormAction('submit', 'Submit')
		parent::__construct($controller, $name, $fields, $actions);

It is also possible for me to get the Fieldholder into my template with this code:


However, when I try to upload I get a 404 error in charles... How can I debug this?

Thanks for any help



Community Member, 134 Posts

1 March 2011 at 12:08am

Problem solved. The error was caused by wrong implementation of the form in the controller. Uploadify works now in my subclassed form.