Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Vote for DotNetNuke as your choice for winner of this year's PackT Open Source CMS Award
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Select a file under the Portal root
Previous Previous
 
Next Next
New Post 7/1/2008 3:37 AM
Unresolved
User is offline Simon Holman
35 posts
www.expressnet.com.au
10th Ranked




Select a file under the Portal root 

I want to be able to select a file from somewhere under the portals root directory and store the path in a textbox.

What's the easiest way to create a File Selector? I would like kind of like an file upload browse option but for the server, not the client.

 
New Post 7/1/2008 5:29 AM
User is offline Will Strohl
1331 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




Re: Select a file under the Portal root 

Creating a file selector that browses the root directory is a bit of a security issue.  That is why there is the file system "sandbox" in the Portals directory.  The reason is, that such a file selector would have full control over all of those files.  This also presents a usability problem for inexperienced users.  I am fairly certain that you are going to write this yourself.  If you stick to the main classes in the System.IO namespace, such a tool should be pretty simple to write.

http://msdn.microsoft.com/en-us/library/system.io(VS.80).aspx


Will LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/2/2008 5:57 AM
User is offline Simon Holman
35 posts
www.expressnet.com.au
10th Ranked




Re: Select a file under the Portal root 

I'm talking about the portal root ie /Portals/0 directory and below, not the installation root directory.

 

 
New Post 7/2/2008 6:27 PM
User is offline Will Strohl
1331 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




Re: Select a file under the Portal root 

Ah!  I got it!  You can use the URL Control from the DNN Core like so:

<!-- IN THE TOP OF YOUR MODULE -->
<%@ Register TagPrefix="dnn" TagName="URL" Src="~/controls/URLControl.ascx" %>
<!-- SOMEWHERE IN YOUR MODULE -->
<dnn:url id="ctlFileBrowser" runat="server" width="250"
    shownewwindow
="False" 
    showusers
="False" 
    ShowFiles
="True" 
    Required
="True" 
    ShowLog
="False" 
    ShowTrack
="False" 
    ShowUrls
="False" 
    ShowTabs
="False" />

Will LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/3/2008 8:44 PM
User is offline Simon Holman
35 posts
www.expressnet.com.au
10th Ranked




Re: Select a file under the Portal root 

Will

This is what I'm after.

Is there any documentation on this control anywhere? I can't seem to find any.

Thanks

Simon

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Select a file under the Portal root
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions
Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP