[Product-Developers] Re: dexterity NamedBlobFile: file size limit?

Kees Hink hink at gw20e.com
Thu Feb 18 15:40:47 UTC 2010

Hi Martin,

Thanks for clearing this up so quickly. Thanks also for your pointers to
possible solutions, which i'll keep in mind.


Martin Aspeli wrote:
> Kees Hink wrote:
>> Is there a way to set a limit on the allowed file size NamedBlobFile
>> fields in
>> dexterity content types?
> I'm sure there's a way, but you'll be the first to try it. :)
>> The list of field properties on
>> http://plone.org/products/dexterity/documentation/manual/developer-manual/reference/fields
>> doesn't list anything.
>> I've also browsed through
>> plone.formwidget.namedfile.widget.NamedFileWidget and
>> z3c.form.browser.FileWidget, but found nothing there.
>> Is this something that currently can't be done?
> I think you just want to register a validator on the field that checks
> the length of the value. It may be interesting to try to bake this into
> the field as a settable property (by implementing IMinMax). Patches
> welcome. ;)
> Martin

More information about the Product-Developers mailing list