Closed (duplicate)
Project:
ImageField
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2008 at 11:56 UTC
Updated:
14 Apr 2009 at 01:20 UTC
We created an image field.
Removed all file extensions from the acceptable list.
Saved the image field.
Creating a node shows no file extension restrictions in the field description text. Great.
Re-editing the widget settings the code checks for the $widget['file_extensions'], and if empty inserts the field with the default 'jpg jpeg png gif'.
Should it really be doing this though? Its effectively overwriting your settings if you go to change anything else in the widget!
The offending line:
456: '#default_value' => $widget['file_extensions'] ? $widget['file_extensions'] : 'jpg jpeg png gif',
Comments
Comment #1
quicksketchEven though this issue was opened earlier, let's consolidate in #421852: "Permitted upload file extensions" still buggy which has more activity.
Comment #2
quicksketch