Hi raz,
I have the same problem. Did you find a solution?
I've found a script to check the size but the form is still saved even if an image with more than the allowed size is selected, and then the title of the image is rendered in the Content view with CSS borders, as the image is missing.
function validateSize(fileInput)
{
var fileObj, size; if ( typeof ActiveXObject == "function" )
{fileObj = (new ActiveXObject("Scripting.FileSystemObject")).getFile(fileInput.value);}
else {fileObj = fileInput.files[0];}
size = fileObj.size;
if(size > 1 * 1024 * 1024)
{alert('Max File size - 1 MB and less than 1024 х 1024. Resize please image and try again');
fileInput.parentNode.innerHTML = fileInput.parentNode.innerHTML; }
}
jQuery('#FIELD_NAME').change(function () {validateSize(this);});
Regards,
ricco