I have a problem with upload of large images.
If a user via the my custom form uploads an image that is too large for GD to handle it (really high res or really large size (kb)) the upload of the file fails and SS saves a reference to an image that is too big for GD to handle. When ever a page tries to render the image the whole site fails - and keeps failing until i manually remove the reference to the large image in mysql admin.
I have tried to put size validation on the field - but I still can upload the big files.
This is what im trying - but it does not work for me. Am i doing it totally wrong or?
$image = new SimpleImageField("Image");
$val = new Upload_Validator();
$val->setAllowedMaxFileSize(array("*" => 200));
$image->setValidator($val);