function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
public static final List<string> CONTENT_TYPES = new string[]{'image/gif','image/png','image/jpg'}; for(attachment a: Trigger.new) { if (!isAllowedContentType(a.ContentType)) { a.addError('only allowed jpg, gif, png files'); } }
https://salesforce.stackexchange.com/questions/121123/how-to-restrict-file-type-in-standard-page-attach