Restricting File Uploads by Type
Posted: Thu Jan 20, 2011 1:48 am
Using CMSMS 1.9.2
Is there any way to restrict the types of files that can be uploaded in the Image Manager (and by extension, the File Manager)?
It seems that only image files will display in the Image Manager, but you can upload any file type in both the Image and FIle Manager, including .exe files.
The only control I can see is in Group Permissions, where I can assign Modify FIles to "yes" or "no". I would like to be able to allow a user to upload a file when they are adding/modifying a page, but restrict it to a .jpg, .png, .pdf, or .doc. Am I missing a setting somewhere that specifies this?
Thanks!
Is there any way to restrict the types of files that can be uploaded in the Image Manager (and by extension, the File Manager)?
It seems that only image files will display in the Image Manager, but you can upload any file type in both the Image and FIle Manager, including .exe files.
The only control I can see is in Group Permissions, where I can assign Modify FIles to "yes" or "no". I would like to be able to allow a user to upload a file when they are adding/modifying a page, but restrict it to a .jpg, .png, .pdf, or .doc. Am I missing a setting somewhere that specifies this?
Thanks!