HubSpot Ideas

jlett

Add ability to set a maximum image size on the image field to prevent super large uploads

Is there a way to force a maximum width image with an image field in a custom module? Some users are uploading gigantic images and I would like to only show images at the specified width of a template. One idea would be to have a setting in the field that lets devs specify a max size and the author would see an error message if they exceed that limit.

 

Also could limit of large uploads show an error message like "This image looks to be optimized for print media and could cause your page to load slowly. Consider resizing before upload." [ok I will resize] [upload anyway]