I am looking for a way to allow only document types (.doc, .pdf, ...) to be uploaded to "document" subfolders and image types (.gif, .jpeg, ...) to be uploaded to "images" subfolders. In other words, I need something that acts like allowed/denied extensions in the accessControl structure. Is there some technique that I am missing that could accomplish this? I am using ColdFusion with application variables enabled.
Gregg
Gregg
Re: Allowed/Denied extensions for subfolders
Edit Core/FolderHandler.cfc and adjust checkSingleExtension function to your needs.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Allowed/Denied extensions for subfolders
Wiktor,
Thanks for the reply. I implemented your suggestion but am having an issue. When I try to upload a file that does not have a sub-folder specific allowed extension, a couple JavaScript errors are thrown. Here's the code chunk that I wiggled into checkSingleExtension:
Re: Allowed/Denied extensions for subfolders
Open ckfinder\core\js\ckfinder_ie.js
replace all occurences of
with
and clear browsers cache.
Let me know if that solved the problem.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Allowed/Denied extensions for subfolders
Problem solved!
Thanks,
Gregg