function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Suman KuchSuman Kuch 

image size validation

Hi Guys,

I have a requirement that users can upload contact photos but since we have limitations in other system we need to eliminate bigger size jpg s, here are the validations that required to implement.
1) image size can not be  more than 1MB
2) image size can not be more than 300Wx375H
would that be possible to implement the validation rules during upload photo process?
RD@SFRD@SF
Hi Suman,

Thats an interesting requirement. I am not sure if we can do that out of the box, but if you are doing it through VF/Apex then this link (https://developer.salesforce.com/forums/?id=906F0000000AstlIAC)might be of help

Regards
RD