Limit images shown in uploader

Last post 11-20-2005, 10:44 PM by beckerben. 6 replies.
Sort Posts: Previous Next
  •  12-06-2004, 3:26 PM 2871

    Limit images shown in uploader

    I will be having many users using this system at one time - but they should not see each other's images.  I have a current ASP classic wysiwyg editor that works like this:

    ---- Outside of editor ----
    User logs in
    USERNAME session variable is set

    ---- Inside of editor ----
    When a user uploads a photo it is saved as USERNAME.FileName.FileExt
    When a user clicks "Insert Image" it lists all files in the folder named USERNAME.*


    Is there a way to replicate this behavior in CuteEditor?

     
  •  12-06-2004, 3:39 PM 2873 in reply to 2871

    Re: Limit images shown in uploader

    Yes, Cute Editor can handle this situation easily:

    For example, you have three users: Tim, Marry and John.

    Tim's image gallery folder is "~/Uploads/Users/Tim"
    Marry 's image gallery folder is "~/Uploads/Users/Marry "
    John's image gallery folder is "~/Uploads/Users/John"

    You can achieve that by doing the following code:



    For more information, please check the Personalization and Programmatic Security Example
     
    The source code the demo can be downloaded here: http://cutesoft.net/Downloads/default.aspx
     
    Hope it helps.
     
  •  12-07-2004, 12:58 PM 2899 in reply to 2873

    Re: Limit images shown in uploader

    Problem with that scenerio is that each user needs to have a physical folder on the server, I would prefer to use the UserName.FileName.FileExtension setup that I am currently using.  The users are made and deleted very frequently, and there are 3,500 of them.  If there is not a way to do that then my question becomes: "Where do I put that case statement?" Sorry I'm new :)
  •  12-07-2004, 1:24 PM 2900 in reply to 2899

    Re: Limit images shown in uploader

    SpreadTheWord,

    You don't need to use the "Case". That's just an example.

    You need to authenticate the user when the page load. And set the different image upload folder based on the user's identity name.

    For example:
     

    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

  •  11-20-2005, 8:56 PM 12827 in reply to 2900

    Re: Limit images shown in uploader

    Adam, how does this model apply in the dotnetnuke arena?  I would like to have each of my registered users have their own upload directory basically. How can I reference the DNN userid or username?
  •  11-20-2005, 10:11 PM 12829 in reply to 12827

    Re: Limit images shown in uploader

    Yes.
     
    Open the CEHtmlEditorProvider.vb and find the following code:
     
     
     
     and change it to:

     
    Then recompile the provider project.
     
     

    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

  •  11-20-2005, 10:44 PM 12832 in reply to 12829

    Re: Limit images shown in uploader

    Great!  Will try this out.
View as RSS news feed in XML