Limit/Restrict a file type that users can upload?

avi.fhima's Avatar

avi.fhima

30 Sep, 2015 05:03 PM

We would like to restrict users from uploading certain file types to the Cascade server. How is this done in Cascade? (Currently using Cascade Server 7.6 - 8fd63).

Thank you.

  1. 1 Posted by Ryan Griffith on 30 Sep, 2015 06:19 PM

    Ryan Griffith's Avatar

    Hi,

    This can be accomplished by creating a File type Asset Factory and adding the File Limit plugin 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.

    For example, the following will restrict to some common file extensions:

    .*\.(doc|docx|rtf|txt|pps|ppt|pptx|jpg|png|pdf|xlr|xls|xlsx)$
    

    Please let me know if you have any questions.

    Thanks!

  2. 2 Posted by avi.fhima on 30 Sep, 2015 07:18 PM

    avi.fhima's Avatar

    Thank you Ryan,

    Will this plug-in work for any future 7.x.x. versions. Also, do you guys manage plug-ins in a hosted version?

    Thank you again

  3. 3 Posted by Ryan Griffith on 30 Sep, 2015 08:04 PM

    Ryan Griffith's Avatar

    Hi,

    Yes, these core plugins are currently bundled with the application and are fully supported.

    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.

    Please let me know if you have any questions.

    Thanks!

  4. 4 Posted by avi.fhima on 30 Sep, 2015 11:12 PM

    avi.fhima's Avatar

    Thank you Ryan,

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

    Thanks!

  5. 5 Posted by Ryan Griffith on 01 Oct, 2015 02:21 PM

    Ryan Griffith's Avatar

    Not a problem at all.

    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.

    Please let me know if you have any questions.

    Thanks!

  6. Tim closed this discussion on 20 Oct, 2015 03:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac