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
Pragya Jha 25Pragya Jha 25 

How to make Upload files option to read only or to restrict a user to upload any files in Files related list

Suraj Tripathi 47Suraj Tripathi 47

Hi Pragya

I suggest writing a trigger on ContentVersion Object to prevent user from uploading the file on case and contact object. We do not have any such permission to restrict user from uploading a file from local drive if user have the permission to read or edit the object.


By the way, you have ability to prevent user uploading Salesforce existing files, not from local drive.
1.From Setup, enter User Profiles in the Quick Find box, and select Profiles.
2.Click Edit next to the user profile you want to change.
3. In the Administrative Permissions section, enable or disable the Select Files from Salesforce checkbox, and click Save.

For more info please follow the link: https://salesforce.stackexchange.com/questions/261783/read-only-permissions-on-files/261784#261784

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Suraj