How can Imagesize be restricted while using/uploading sugar’s ImageField? My guess is there should be any property of field. I want that user upload maximum 2MB image.
How can Imagesize be restricted while using/uploading sugar’s ImageField? My guess is there should
Share
Add the POST_MAX_FILE size form field to the form and it should apply that restriction…
http://php.net/manual/en/features.file-upload.post-method.php