+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Limiting Sitefinity Files to Certain Types

Limiting Sitefinity Files to Certain Types

3 posts, 0 answered
  1. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    13 Mar 2014
    Link to this post

    Hi,

    We are using SF 3.7 SP4 and for security, we would like to limit users to ONLY upload innocuous files, such as JPG, PNG, PDF, DOC, etc.  We do NOT want to allow users to upload .js or .aspx files, for example.  Nor should they be able to rename an existing file to any extension other than the allowed ones. Meaning they can't upload a .aspx page and say it's an .jpg for upload and then rename test.jpg to test.aspx and execute it.

     Also, we'd like to limit which folders they can upload to and even see.  By default they see the entire site but can we limit them to ~/images/ & ~/files/ for example?

     Please let us know

    Thanks!

  2. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    17 Mar 2014 in reply to Ben Alexandra
    Link to this post

    Hi,

    I've had very little luck getting replies to any tickets in the past couple of years but I'm hoping someone can help me with this.

     Thanks

    Ben

  3. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    29 Nov 2016
    18 Mar 2014
    Link to this post
    Hi Ben,

    You could create a custom library and than define the allowed extension in the web.config. More information could be found in the Sitefinity 3.x documentation on that link.

    Renaming the files could be restricted by creating a dedicated role for such users and deny the Manage files. More about the permissions could be found in the user manual available for download in your Telerik account.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
Register for webinar
3 posts, 0 answered