hi all here,
I want to display an error message when the image is uploaded in a content type. Here if i give the max_resolution to the image field the image gets resized to the max_resolution and gets uploaded, but i want to restrict the user from uploading the image.
I have tried using hook_form_alter and used upload validators still it is not restricting instead it is resizing.
Please provide me some solution where i can restrict the uploading of image greater than max_resolution specified.