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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Coinshooter created an issue. See original summary.

Greenstack’s picture

Found 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.

Greenstack’s picture

Status: Active » Closed (works as designed)
Greenstack’s picture

Status: Closed (works as designed) » Active

Ignore 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?

ufku’s picture

Project: IMCE » IMCE plupload
Version: 7.x-1.9 » 7.x-1.3
Category: Bug report » Support request
Priority: Major » Normal
Issue tags: -imce, -file upload, -file permissions
Greenstack’s picture

Issue summary: View changes
Kingdutch’s picture

Status: Active » Closed (duplicate)

This has been fixed in #2076099: IMCE extensions set to '*'.

If you still experience this after upgrading to 2.0 please open a new issue :)

Greenstack’s picture

Everything seems to be working fine with the new update. Thanks for the help!