Closed (works as designed)
Project:
IMCE
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2013 at 08:58 UTC
Updated:
8 Aug 2022 at 06:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hargobindI have created a patch to accomplish this. Please review it.
A lot of the code changes were a matter of renaming the existing profile variables from
extensionstoextensions_upload, and I made sure to add ahook_update_N()to account for this variable name change. Make note that this update introduces a string change to the old config setting "Permitted file extensions", and adds new strings, so translations will have to be updated too.Comment #2
thallesCurrently any browser can open a PDF file, so, maybe this don't do more sense
Comment #3
thallesComment #4
hargobind@thalles This issue is bigger than just PDF files. It applies to any kind of file type that an administrator might want to restrict.
However, I don't really feel that this feature is necessary the more I think about it. I don't see any sense in allowing someone to upload certain file types but restricting them to browsing different file types. I think that if you really need to restrict browsing to specific file types, then creating additional IMCE profiles should be sufficient.
Comment #5
thallesThanks @hargobind!
Comment #6
rtnilesh.gupta commenteddouble file extension it is taking any idea how to stop? like salt.php.pdf not to take in drupal 7 webform but it is taking how to alter? por stop or is there any option to rename the extension. before upload or after upload. i need custom module or is there any module?
Comment #7
hargobind@rtnilesh.gupta Your question is different than the original issue. Please open a new issue.