Search
  
 
Mitchel Sellers' DotNetNuke, .NET, and Other Topics BlogMinimize
 
 
Subscribe To Blog Updates by E-Mail

Current Articles | Categories | Search | Syndication

   
 DotNetNuke Folder Types Explained
By Mitchel Sellers on Thursday, December 06, 2007 @ 8:19 AM
 
  884 Views :: 10 Comments :: :: DotNetNuke
  
 

DotNetNuke includes 3 separate folder type options for portal administrators.  I have noticed recently that this is a function that not very many individuals were aware of; so I thought I would take the time to quickly explain the differences between the three and when you might use one over the other.  This article wil only cover what the different folder types are and their usage.  Not the actual implementation.

Via the DotNetNuke File Manager functionality the three options you are given for folder security are; standard file system, secure-file system, secure-database.  Below I will discuss each of these security levels in detail.  Please keep in mind that these values ONLY apply to specific folders inside your DNN folder structure they do not actually branch out and create any separate file structures.  You can see these options via file manager as in the image below.  (Taken from a DNN 4.6.2 install)

File Manager Folder Types

Standard File System

The standard file system is exactly what you might expect.  This is a method where you have a standard collection of files and folders and any files you upload will simply be available via the path to that folder.  This is the file system that most individuals are familiar with.  You would use this file system option when you are not concerned about access to your files, for example this is where you could place your logo file for your portal or a freely available image file.

Secure File System

A folder that is created as a "Secure File System" folder within DotNetNuke is a folder that will still store files in the logical file structure that you layout, however, the files within this directory will have .resources appended to the filename when it is saved.  This method prevents any person from linking directly to those files as ASP.NET will NOT serve .resources files to a remote browser.

Now, you can use this functionality to protect files that you don't want others to hotlink to.  You can utilize the DNN LinkClick.aspx file processor to actually serve the file up when it is needed which makes it possible for you to set the file view permissions to restrict the viewing to just authenticated users or any other selected role.  This provides a great means for you to protect your important data.

Secure Database

This final option is similar to the secure file system in that it provides a secure location for your files to be saved.  The difference is in where the actual files are stored.  With this option all files are actually stored in your sites' SQL Server database and are extracted and served to your users when needed.  Due to this I would only recommend using this option or HIGHLY secured files that you want to be 100% sure are embedded into your applications database.  If you are storing large files using this method you might notice that its performance is the slowest of all three options.

I hope that this has provided you with a helpful overview of each folder type available in DotNetNuke.

 
  
 Share/Save This Article 
 

Use the below controls to save this article to one of many popular social bookmarking sites!

   kick it on DotNetKicks.com  
 
  
 Article Rating 
  
  
 Article Comments 
 
By Déclic Vidéo FX @ Friday, December 07, 2007 12:01 AM
Hello Mitchel,

This article is great, I always wondering what it was. But unfortunately (at least for me), it is not clear enough...
Fo Secure File System, I do not understand how to put an SWF video for example, and to link it into an HTML/Text module (so people can see it in myt website, but are not allowed to download it)....
You should add this kind of explanation. Because with the information provided, for me it is not usable and I did not manage to do anything with it. I just understood the purpose of it, not how to use it.

DV

By Mitchel Sellers @ Saturday, December 08, 2007 7:42 AM
DV,

In your case, you could link to the file using the LinkClick.aspx page. Using the file ID, then you can use that as the source for your SWF. People wouldn't be able to download it unless they have logged in.

If you want shoot me an e-mail and I'll give you a bit of guidance.

By Will @ Tuesday, December 11, 2007 10:01 AM
Great article! Many people will find that useful...

By Fritz @ Thursday, January 17, 2008 3:25 AM
Thanks for shedding light on this. I am trying to figure our another aspect of the secure folder; How do I set up PDF to PDF links within secure folders? I was able to park my files outside of DNN control on the server before, but that laid them open and unsecured. I'm using a summary PDF doc that links out to other PDFs, but I can't get the links to work.

By Mitchel Sellers @ Thursday, January 17, 2008 3:30 AM
Fritz,

To link to a document in a secured folder, you must link to the LinkClick.aspx page and pass the file id parameter to it. You cannot link directly to the file.

By Nitin Pawar @ Friday, February 08, 2008 8:26 AM
Nice one, I am glad that I came across this article..


By Hans Hallole @ Thursday, March 06, 2008 10:22 AM
be aware, that you can specify folder type only when creating the folder, this cannot be changed afterwards.

By rajeev @ Saturday, March 08, 2008 10:03 AM
i have the same question with the swf files. I have a folder and it contains like 3 swf files,index.htm, js file etc. I can use the html module and link the index.htm file but the user can copy and paste the url and see the presentation even without logging in to the portal. When i tried the links module and linked to the index.htm file nothing happens.the page is blank. I want to show the presentation when the user is logged in. They cannot see the presentation when the user is looged off.
I created two folders one in secure and an the other in insecure and uploaded the files. using the links module to the index.htm file i was unsucessfull with secure and insecure folder.
Any help

By Jay Ro @ Thursday, April 24, 2008 3:43 PM
Is there an example of passing values to the linkclick.aspx page? I tried to use linkclick.aspx?FileId=39 but it leads to nothing. I'd like to use the secured folders to protect all of my pdfs. thanks in advance.

By Mitchel Sellers @ Thursday, April 24, 2008 3:49 PM
Jay,

There is a specific method inside the DotNetNuke API that can be called to get the proper link...it is inside the DotNetNuke.Common namespace

Click here to post a comment
 

 Add to Technorati Favorites
 Print   
 
  
 
ArchiveMinimize
 
 
 Print   
 
  
 
CategoriesMinimize
 
 
 Print   
 
  
 
DonateMinimize
 
 

Show your appreciation for the content/modules made available by MitchelSellers.com by making a donation. Donations are used to assist with dedicating time to creating free content. 

 Print