django-cabinet icon indicating copy to clipboard operation
django-cabinet copied to clipboard

Validation for file size

Open mavenium opened this issue 1 year ago • 1 comments

How can I create a validation for file size?

mavenium avatar Aug 12 '23 19:08 mavenium

Hey

I'd try replacing the file model with your own model and adding the validation to def clean or maybe to the relevant def accept_file methods.

matthiask avatar Aug 14 '23 07:08 matthiask