I have a form in my django app where users can upload files.
How can i set a limit to the uploaded file size so that if a user uploads a file larger than my limit the form won’t be valid and it will throw an error?
I have a form in my django app where users can upload files. How
Share
This code might help:
Taken from: Django Snippets – Validate by file content type and size