[Product-Developers] Re: dexterity NamedBlobFile: file size limit?
hink at gw20e.com
Thu Feb 18 15:40:47 UTC 2010
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
>> 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. ;)
More information about the Product-Developers