> Forums > Active Social > General Discussion > How to Create a Folder Structure for Each User
Last Post 20 Oct 2011 12:29 PM by Cliff Hammock. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Cliff Hammock
Customers
Cliff Hammock
Post Count:667

--
17 Oct 2011 10:22 AM
    Is there a way to automatically create a folder structure for users when they register on the site? I would like to create the folder structure in preparation of storing user-specific uploads like documents, photos, videos and audios. I am going to try to use XMod Pro for the upload, storage and display functionality. You can specify target folders within XMP using its file upload control. But I need for the folder structure to exist without, preferably without the user having to create it.

    Any ideas on how to create this using either AS signup or Core DNN or I guess I could use Data Springs Dynamic Registration if I have to. I am just looking for as many methods as possible to test out.
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    20 Oct 2011 05:15 AM
    Cliff,
    Just happened to see this on DNN.com

    http://www.dotnetnuke.com/Resources...posts.aspx

    I haven't tested it but the code posted looked like it would work and you could add in username or userid (I'd go userid)

    
    
    var filterFolderName = FOLDER_NAME;
    var folderPath = PathUtils.Instance.FormatFolderPath(PathUtils.Instance.FormatFolderPath(PathUtils.Instance.StripFolderPath("").Replace("\\", "/")) + filterFolderName);
    
     //Add Folder to Database
    FolderManager.Instance.AddFolder(FolderMappingController.Instance.GetFolderMapping(8), folderPath);
    FolderManager.Instance.Synchronize(this.PortalId);
    
    
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Cliff Hammock
    Customers
    Cliff Hammock
    Post Count:667

    --
    20 Oct 2011 12:29 PM
    Thanks Steven. I would really love to be able to have all the user / group media files stored on an S3 account but I can't readily see how to manage individual folders using S3. Any ideas?

    My alternative is to create the user folders on my server and store everything there. Not sure if I need to immediately make this transparent to the user as a part of Dynamic Registration or something? Or if I could have a button they click somewhere after registration. Just thinking about a crawl, walk, run approach. Then I could use Amazon CloudFront to at least push out content to edge servers for delivery. I know there are so many what ifs and what happens when and don't I need to plan for this or that. But as the guys from 37 Signals put it so eloquently, Decisions are Temporary. I just need to build decent functionality with some eye to the future and get this thing going NOW! Hopefully by the time storage becomes an issue I will be generating income and be able to fund either more storage or to build a better method.

    The guys at XMod are willing to help me try to pull some of this off and they seem to have some good ideas. I am going to do a call with them most likely on Friday to discuss requirements. If you want to get together and discuss any ideas you have that would be great. Or if you want to partner with us on this that would be even more awesome. I just can't wait for someone else to do it and I know XMod Pro can be used to do some very complex stuff. I guess that offer goes out to anyone interested in what we will be trying to accomplish.
    You are not authorized to post a reply.
    > Forums > Active Social > General Discussion > How to Create a Folder Structure for Each User
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy