i am uploading image and want to restrict the user to upload the image with dimension 270 X 270 . how do i do that. i have tried to get the values of widht and lenght through image class but it didnt worked when the site was up on the server.
can anyone guide me