DNN 4.8.2 and File Paths

Last post 04-10-2008, 8:30 AM by jhoelz. 5 replies.
Sort Posts: Previous Next
  •  04-09-2008, 12:19 PM 38967

    DNN 4.8.2 and File Paths

    I have gone through what seems like hundreds of posts and I just can't get an understanding of this.
     
    We are trying to define the default folder locations for files (docs, images, media etc.). The first problem is that there is a folder being created call "Members" and I have no idea where that is coming from. Registered users with edit permissions can't get past this folder. Where is this defined?
     
    If we define a default folder can users still navigate up the structure from the default location?
     
    From what I can tell we need to make the changes in the security/config files but nothing we change there seems to work.
     
    We have tried changing <security name="ImageGalleryPath">~/uploads</security> to <security name="ImageGalleryPath">~/images</security> with no luck. 
     
    I'm sure it's something simple and something already covered but I just can't find it.
     
    Thanks for your help.
     
    Webconfig as follows

    <htmlEditor defaultProvider="CEHtmlEditorProvider" >
            <providers>
      <clear/>
                    <add name="CEHtmlEditorProvider"
      type="DotNetNuke.HtmlEditor.CEHtmlEditorProvider, DotNetNuke.CEHtmlEditorProvider"
      providerPath="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CuteSoft_Client\CuteEditor\"
                    UseDNNRoleASFileNamePrefix="false"  
      UseDNNRootImageDirectory="true"
      UseDNNDefaultWidth="false"    
      ConvertHTMLTagstoLowercase="true"
      URLType="default"
      UseHTMLEntities="true"
      RenderRichDropDown="true"
      UseSimpleAmpersand="false"
      CustomCulture=""
      ThemeType=""
      DisableAutoFormatting="false"
      BreakElement="div"
      EditorBodyStyle="background-color:#ffffff"
                    EditorWysiwygModeCss="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\DNNGeneral.css"
                   
      Admin_AutoConfigure = "Full_noform"
      Admin_SecurityPolicyFile = "admin.config"
      Admin_TemplateItemList = ""
      Admin_DisableItemList = ""
      Admin_AllowPasteHtml  ="true"
      Admin_EditorOnPaste  = "default"
      Admin_ReadOnly = "false"
      Admin_ShowBottomBar ="true"
      Admin_ShowHtmlMode  ="true"
      Admin_ShowPreviewMode  ="true"
      Admin_ShowTagSelector  ="true"
      Admin_EnableStripScriptTags  ="false" 
      Admin_EnableContextMenu    = "true"    
               
      Registered_AutoConfigure = "Compact"
      Registered_SecurityPolicyFile = "default.config"
      Registered_TemplateItemList = ""
      Registered_DisableItemList = ""
      Registered_AllowPasteHtml  ="true"
      Registered_EditorOnPaste  = "default"
      Registered_ReadOnly = "false"
      Registered_ShowBottomBar ="true"
      Registered_ShowHtmlMode  ="true"
      Registered_ShowPreviewMode  ="true"
      Registered_ShowTagSelector  ="true"
      Registered_EnableStripScriptTags  ="false" 
      Registered_EnableContextMenu    ="true" 
               
      Guest_AutoConfigure = "Minimal"
      Guest_SecurityPolicyFile = "default.config"
      Guest_TemplateItemList = ""
      Guest_DisableItemList = ""
      Guest_AllowPasteHtml  ="true"
      Guest_EditorOnPaste  = "default"
      Guest_ReadOnly = "false"
      Guest_ShowBottomBar ="true"
      Guest_ShowHtmlMode  ="true"
      Guest_ShowPreviewMode  ="true"
      Guest_ShowTagSelector  ="true"
      Guest_EnableStripScriptTags  ="false" 
      Guest_EnableContextMenu    ="true"

              />
            </providers>
         </htmlEditor>

     
    Default.config in security as follows
     
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <security name="RestrictUploadedImageDimension">true</security>
     <security name="OverWriteExistingUploadedFile">false</security>
     <security name="UseTimeStampRenameUploadedFiles">false</security>
     <security name="AutoResizeUploadedImages">true</security>
     <security name="MaxImageWidth">320</security>
     <security name="MaxImageHeight">320</security>
     <security name="MaxImageSize">500</security>
     <security name="MaxMediaSize">10000</security>
     <security name="MaxFlashSize">1000</security>
     <security name="MaxDocumentSize">10000</security>
     <security name="MaxTemplateSize">1000</security>
     <security name="ImageGalleryPath">~/uploads</security>
     <security name="MediaGalleryPath">~/uploads</security>
     <security name="FlashGalleryPath">~/uploads</security>
     <security name="TemplateGalleryPath">~/templates</security>
     <security name="FilesGalleryPath">~/uploads</security>
     <security name="MaxImageFolderSize">102400</security>
     <security name="MaxMediaFolderSize">102400</security>
     <security name="MaxFlashFolderSize">102400</security>
     <security name="MaxDocumentFolderSize">102400</security>
     <security name="MaxTemplateFolderSize">102400</security>
     <security name="ThumbnailWidth">80</security>
     <security name="ThumbnailHeight">80</security>
     <security name="ThumbnailColumns">5</security>
     <security name="ThumbnailRows">3</security>
     <security name="AllowUpload">true</security>
     <security name="AllowModify">true</security>
     <security name="AllowRename">true</security>
     <security name="AllowDelete">true</security>
     <security name="AllowCopy">true</security>
     <security name="AllowMove">true</security> <!-- this is rename too -->
     <security name="AllowCreateFolder">true</security>
     <security name="AllowDeleteFolder">true</security>
     <security name="ImageFilters">
      <item>.jpg</item>
      <item>.jpeg</item>
      <item>.gif</item>
      <item>.png</item>
     </security>
     <security name="MediaFilters">
      <item>.avi</item>
      <item>.mpg</item>
      <item>.mpeg</item>
      <item>.mp3</item>
      <item>.wmv</item>
      <item>.wav</item>
     </security>
     <security name="DocumentFilters">
      <item>.txt</item>
      <item>.doc</item>
      <item>.pdf</item>
      <item>.zip</item>
      <item>.rar</item>
      <item>.avi</item>
      <item>.mpg</item>
      <item>.mpeg</item>
      <item>.mp3</item>
      <item>.wav</item>
      <item>.swf</item>
      <item>.jpg</item>
      <item>.jpeg</item>
      <item>.gif</item>
      <item>.png</item>
      <item>.htm</item>
      <item>.xls</item>
      <item>.html</item>
      <item>.rtf</item>
      <item>.wmv</item>
     </security> 
     <security name="TemplateFilters">
      <item>.txt</item>
      <item>.rtf</item>
      <item>.html</item>
      <item>.htm</item>
      <item>.xml</item>
     </security>
     <security name="filenamePattern">^[a-zA-Z0-9\._\s-\#]+$</security>
    </configuration>
     
     
  •  04-09-2008, 12:33 PM 38968 in reply to 38967

    Re: DNN 4.8.2 and File Paths

    jhoelz,
     
    >>We are trying to define the default folder locations for files (docs, images, media etc.). The first problem is that there is a folder being created call "Members" and I have no idea where that is coming from.
     
    The above folders are defined in the Editor provider for DNN.
     
    >>we define a default folder can users still navigate up the structure from the default location?  
    From what I can tell we need to make the changes in the security/config files but nothing we change there seems to work.
     
    Please modify your web.config file and set the following code:
     
    UseDNNRootImageDirectory="true"
     
    to:
     
    UseDNNRootImageDirectory="false"
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-09-2008, 6:09 PM 38970 in reply to 38968

    Re: DNN 4.8.2 and File Paths

    OK, seems to work for images but everything else is broken.
     
    How do I get this to work with files in a multi portal environment where I need the path to be portalroot/docs, portalroot/media, portalroot/flash?
     
    Right now if I do <security name="FilesGalleryPath">/docs</security> or <security name="FilesGalleryPath">~/docs</security> I get the error.
     
    "Cannot find a part of the path"
     
    Works fine for images!
  •  04-09-2008, 6:40 PM 38971 in reply to 38970

    Re: DNN 4.8.2 and File Paths

    jhoelz,
     
    >>OK, seems to work for images but everything else is broken.
     
    It also works for other dialogs.
     
    >>where I need the path to be portalroot/docs, portalroot/media, portalroot/flash?
     
    Please modify the provider project (CEHtmlEditorProvider.vb).
     
    For example:
                        tempfolder="myfolder..."

                        cntlCE.SetSecurityImageGalleryPath(tempfolder)
                        cntlCE.SetSecurityFilesGalleryPath(tempfolder)
                        cntlCE.SetSecurityMediaGalleryPath(tempfolder)
                        cntlCE.SetSecurityFlashGalleryPath(tempfolder)
                        cntlCE.SetSecurityTemplateGalleryPath(Templatefolder) 

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-09-2008, 11:36 PM 38982 in reply to 38971

    Re: DNN 4.8.2 and File Paths

    I can't make it work.
     
    There seems to be no support for folder permissions either?
     
    Is there a document someplace that outlines all of the possible web.config settings and permission combinations?
     
  •  04-10-2008, 8:30 AM 39031 in reply to 38982

    Re: DNN 4.8.2 and File Paths

    I see we can add a prefix to the filename based on role.
     
    How about the ability to auto create and restrict access to a root folder by username?
     
    That would work out excellent if we can utilize the built in folder permissions.
View as RSS news feed in XML