On Chrome, Firefox, and (I believe) Safari, I'm trying to configure the IMCE File browser to accept different file types. I've set the filter to *, thereby removing the restriction (or so it would seem). However, upon clicking "Upload," the Allowed file types are listed as jpg, jpeg, gif, png, txt, doc, xls, pdf, ppt, pps, odt, ods, and odp. I click "add files," and proceed to select the "all files" option in the system file browser. However, when I try to select another document type, it displays "Error: Invalid File Extension (filename).(extension)". We're using the File Browser on specific admin accounts only in order to upload files that our other users will need for their respective responsibilities.
Steps to reproduce:
-Configure an IMCE profile for specific roles.
-Set "Permitted file Extensions" to *, removing all restrictions on one of these IMCE profiles.
-Set the profile to a viable user role.
-Attempt to upload any file type other than the original predefined types.
Modules that may or may not be involved are the filefield_paths, filefield_sources, imce, imce_mkdir, imce_plupload, and the ckeditor modules. Sorry for not having more information - I only recently came into the project, and this issue appeared shortly after I'd started. If you need more info, I can dig around. Attached are two screenshots that display the issue.
EDIT: When putting a space in front of the asterisk, selecting files to upload, and then attempting the upload, the following happens: first, it states that "only files of type *" are allowed; second, it says "for security reasons, file x was renamed to file x.txt;" then it says that the file extension was rejected once again.
Comment | File | Size | Author |
---|---|---|---|
IMCE file extension error.jpg | 224.57 KB | Greenstack | |
IMCE file extension error-2.jpg | 225.33 KB | Greenstack |
Comments
Comment #2
Greenstack CreditAttribution: Greenstack commentedFound out what the problem was - I didn't know that there needed to be a leading space before the * - putting it in fixed the issue. I wonder if that's intentional or an error, since the leading space isn't needed before normal file extensions.
Comment #3
Greenstack CreditAttribution: Greenstack commentedComment #4
Greenstack CreditAttribution: Greenstack commentedIgnore my last comment - it now allows me to select those files, but it still won't actively allow me to upload them - when I try, it says "files with only * extension can be uploaded." Am I missing something?
Comment #5
ufku CreditAttribution: ufku commentedComment #6
Greenstack CreditAttribution: Greenstack commentedComment #7
KingdutchThis has been fixed in #2076099: IMCE extensions set to '*'.
If you still experience this after upgrading to 2.0 please open a new issue :)
Comment #8
Greenstack CreditAttribution: Greenstack commentedEverything seems to be working fine with the new update. Thanks for the help!