Reputation: 4937
I'm using django-summernote. How can I change the file size upload limit? I get the error: "Got an error uploading an image: File size exceeds the limit allowed and cannot be used" when I try to add an image using the summernote widget's toolbar.
I can found it in the source here, but it's as far as I could get:
Thanks!
Upvotes: 3
Views: 2413
Reputation: 47866
You can control the image upload limit settings using SUMMERNOTE_CONFIG
settings.
You need to add attachment_filesize_limit
setting with your desired value to your summernote settings.
SUMMERNOTE_CONFIG = {
...
'attachment_filesize_limit': custom_file_limit, # specify the file size
}
Upvotes: 7