To avoid the site becoming very slow to load for users with slower connections, we should enforce some limits on the size of image files that can be uploaded:
on the frontend side, e.g. 500kb
should apply to admin image uploads as well as user uploads
on the server side, e.g. 1MB
backup limit in case a large file gets through the frontend
To avoid the site becoming very slow to load for users with slower connections, we should enforce some limits on the size of image files that can be uploaded: