You need to sign in to do that
Don't have an account?
Jonathan Wolff 7
How to block the upload of specific document types in salesforce?
Hi, I would like to block specific document types to be uploaded in salesforce. Is there a possibility to apply a filter so there i.e could only be uploaded jpeg's?
Greetings
Jonathan
Greetings
Jonathan
>> https://salesforce.stackexchange.com/questions/121123/how-to-restrict-file-type-in-standard-page-attach
In the above link there is a implementation that you can use I am adding it below for quick reference:
If you are building custom lightning component implementation then as mentioned in the documentation https://developer.salesforce.com/docs/component-library/bundle/lightning-file-upload/documentation you can make use of acceptedformats using accept attribute to the tag as implemented in the below snippet:
>> https://help.salesforce.com/articleView?id=000319977&type=1&mode=1
As mentioned in the above if you want to restrict the upload of specific type to chatter you can use the trigger and add to the condition the necessary file types that aren't allowed.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.