tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/19660-limitrestrict-a-file-type-that-users-can-uploadCascade CMS: Discussion 2015-10-20T15:02:51Ztag:help-archives.hannonhill.com,2010-02-09:Comment/380685672015-09-30T18:19:37Z2015-09-30T18:19:37ZLimit/Restrict a file type that users can upload?<div><p>Hi,</p>
<p>This can be accomplished by creating a File type <a href="http://www.hannonhill.com/kb/Asset-Factory/">Asset Factory</a> and
adding the <a href="http://www.hannonhill.com/kb/Asset-Factory/available-plug-ins/file-checker-plug-in.html">
File Limit plugin</a> to it. This plugin will allow you to provide
a regular expression, which can allow you to limit by the extension
of the file name.</p>
<p>For example, the following will restrict to some common file
extensions:</p>
<pre>
<code>.*\.(doc|docx|rtf|txt|pps|ppt|pptx|jpg|png|pdf|xlr|xls|xlsx)$</code>
</pre>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/380685672015-09-30T19:18:42Z2015-09-30T19:18:42ZLimit/Restrict a file type that users can upload?<div><p>Thank you Ryan,</p>
<p>Will this plug-in work for any future 7.x.x. versions. Also, do
you guys manage plug-ins in a hosted version?</p>
<p>Thank you again</p></div>avi.fhimatag:help-archives.hannonhill.com,2010-02-09:Comment/380685672015-09-30T20:04:21Z2015-09-30T20:04:21ZLimit/Restrict a file type that users can upload?<div><p>Hi,</p>
<p>Yes, <a href="http://www.hannonhill.com/kb/Asset-Factory/available-plug-ins/index.html">
these core plugins</a> are currently bundled with the application
and are fully supported.</p>
<p>I know there has been some discussion of breaking these bundled
asset factory plugins out into their own project, but I would
imagine these core ones would still be bundled with the app
regardless since existing clients are using it.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/380685672015-09-30T23:12:16Z2015-09-30T23:12:16ZLimit/Restrict a file type that users can upload?<div><p>Thank you Ryan,</p>
<p>One last question is, and sorry I should have asked this
earlier, well I noticed that on the "Example Plug-ins" site there
is a drop-down menu for KB Version 6.x / 5.x. Those plugins are
supposed to work with 7.x as well, is that correct. In other words,
those plug-ins don't only apply for Version 6.x and 5.x, is that
correct. (And only if you happen to know: Do you know what will
happen in version 8.x).</p>
<p>Thanks!</p></div>avi.fhimatag:help-archives.hannonhill.com,2010-02-09:Comment/380685672015-10-01T14:21:48Z2015-10-01T14:21:48ZLimit/Restrict a file type that users can upload?<div><p>Not a problem at all.</p>
<p>As I mentioned, these core plugins are currently bundled with
the application itself, so they are fully supported and specific to
the version of Cascade you are running. For example, if you are
running 6.10 the plugins are specific to 6.10, if you are running
7.4 the plugins are specific to 7.4, and so on.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffith