Hi everyone,
In the File Upload Preferences, the only two option I have are “All File Types” and “Images Only”.
Is there a way to specify precisely witch file types to allow?
Thanks
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
September 10, 2010 7:48am
Subscribe [5]#1 / Sep 10, 2010 7:48am
Hi everyone,
In the File Upload Preferences, the only two option I have are “All File Types” and “Images Only”.
Is there a way to specify precisely witch file types to allow?
Thanks
#2 / Sep 10, 2010 10:11am
Welcome to the forums! Actually, “All File Types” still only allows the upload of file types in .../system/expressionengine/config/mimes.php. You can modify that list as needed.
#3 / Sep 10, 2010 10:24am
Is there any way of creating more File Types categories, other then the standard 2?
#4 / Sep 10, 2010 10:28am
Not without extensive code modifications, I am afraid.
#5 / Sep 10, 2010 10:43am
What about the drop down box in the custom field type that allows you to specify if it an image or any?
What effect does it have?
I tried to upload a video file while having that selected as image and at the same time having the folder allowed upload type selected as any type and it uploaded without any problems..
There seems to be no difference bettween these two types while changing them in the custom field settings.. what am I missing here?
#6 / Sep 10, 2010 10:47am
What about the drop down box in the custom field type that allows you to specify if it an image or any?
What effect does it have?
As I’ve said, “image” means just that, “any” refers to all file types allowed in mimes.php.
#7 / Sep 10, 2010 10:51am
Sorry if I was not clear..
What I mean is that it makes no effect if I select image. It still allows me to upload other file types.
It only has effect if I change it on the upload settings, but not in the custom fieldtype file settings
#8 / Sep 10, 2010 3:51pm
Hi, nerdcommunications. Quick question for you.. which version/build of EE2.x are you using? You can find that out at the bottom of any control panel page.
#9 / Sep 13, 2010 4:19am
2.1.0
#10 / Sep 13, 2010 4:59am
Tried to edit mimes.php without success.
It still allows the upload of everything.
Tried to clean browser and EE Caches, a clean EE install.. nothing.
My mimes.php: http://pastie.org/1155304
Thank you
#11 / Sep 13, 2010 9:38am
I see what you mean. For instance, I can upload sites.txt even though I’m not allowing .txt files in the mimes.php file. They are still there, but not clickable.
Expected behavior - some sort of error message about an invalid mime type?
#12 / Sep 13, 2010 9:51am
Exactly.. like what happens if I restrict a folder just to images.
When I try to upload something else, it gives a message.
#13 / Sep 14, 2010 2:09am
nerdcommunications,
I can replicate your issue and have filed a bug report on your behalf. Thank you for our patience.