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.

Comments

christopher james francis rodgers’s picture

You posted your 'Topic' in a deprecated forum.

The 'Deprecated' section of the forums
is intended as a library archive collection of old posts
and is not be seen by typical forum users.

Please "edit" this 'Topic', and change the 'Forum'
to one of the active ones.

I recommend the 'Forum'
Post installation http://drupal.org/forum/22
or possibly
Module Development and Code Questions http://drupal.org/forum/4.

Good luck, and all the best.


All the best; intended.
-Chris (great-grandpa.com)
___
"The number one stated objective for Drupal is improving usability." ~Dries Buytaert *