What steps will reproduce the problem?
1. Added '.swf' to the list of allowed file types in settings.py
2. Try to upload an swf file
3. When I click browse, .swf files are greyed out in the file chooser
What is the expected output? What do you see instead?
I would expect that these files would be selectable for upload
What revision of the FileBrowser are you using?
Revision 528
What version/revision of Django are you using?
Revision 11877
Please provide any additional information below.
Here is my relevant settings:
EXTENSIONS = getattr(settings, "FILEBROWSER_EXTENSIONS", {
'Folder': [''],
'Image': ['.jpg','.jpeg','.gif','.png','.tif','.tiff',],
'Video': ['.mov','.wmv','.mpeg','.mpg','.avi','.rm'],
'Document': ['.pdf','.doc','.rtf','.txt','.xls','.csv','.swf'],
'Audio': ['.mp3','.mp4','.wav','.aiff','.midi','.m4p'],
'Code': ['.html','.py','.js','.css']
})
# Define different formats for allowed selections.
# This has to be a subset of EXTENSIONS.
SELECT_FORMATS = getattr(settings, "FILEBROWSER_SELECT_FORMATS", {
'File': ['Folder','Document',],
'Image': ['Image'],
'Media': ['Video','Sound'],
'Document': ['Document'],
# for TinyMCE we can also define lower-case items
'image': ['Image'],
'file': ['Folder','Image','Document','Flash'],
})
Original issue reported on code.google.com by dmee...@gmail.com on 29 Jan 2011 at 5:06
Original issue reported on code.google.com by
dmee...@gmail.com
on 29 Jan 2011 at 5:06