You need to sign in to do that
Don't have an account?

To restrict uploading filetypes
How to create a not allowed list in “Custom Settings” and add values are exe, vbs, dll, bat ( We can add more later). Implement a filter to restrict file upload types in Saleforce environment by fetching values from custom setting.
Don't know about cutom settings but you can do it on the client side using Javascript.
Thanks!
You can create an attachment Object and make use of content type property of Attachments to verify .
Additional http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_inputFile.htm
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_attachment.htm
thanks
but javascript can be turned off, so i would prefer not to use javascript. can u suggest something?
can i make use of a trigger on an object of Custom Settings. the custom setting would cosist of a list of the resctricted filetypes?
Hey... Can you please let me know what are you using to upload the file? Can you post your code so that I can suggest/make changes....
Thanks!
Am uploading files through the Attachment Object, and i just need to create a list of certain filetypes like .exe,.bat, etc. so that these files can be restricted from being uploaded. Am trying to create a trigger which wud restrict these files from being uploaded.