Re: Upload using alternative user premissions/credentials

  •  07-15-2010, 3:52 AM

    Re: Upload using alternative user premissions/credentials

    Hi
     
    Thanks for your response Terry.
     
    The second of those two threads gets us pretty close to what we want;

    1. <add key="CuteWebUI.AjaxUploader.WindowsUsername" value="Terry" />  
    2. <add key="CuteWebUI.AjaxUploader.WindowsPassword" value="12345abcde" />  
    3. <add key="CuteWebUI.AjaxUploader.WindowsDomain" value="" /> 
    Web Application need <trust level="Full" /> for this option.

    Is there any way to set these options on an instance of the control itself (not from the web.config)?
    After we distibute our product we don't always have easy access to the web.config file afterwards. When ever we can, we try to store this type of setting elsewhere and set them dynamically.
    Is there any other way to set these three options?

    Also in post 62500 you mention the following:
    Web Application need <trust level="Full" /> for this option
    While the page loading , the page lifetime may be affect by this account setting!
    If not , use uploader.GetUploaderProvider() to ensure the uploader control impersonate the account
    How can the "GetUploaderProvider" method be used to help in this situation?
    I can't find any documentation or examples of how this method can be made use of.
    Are there any examples that anybody can point me to?
    How can this method be used to impersonate a user account without setting the trust level to full?
View Complete Thread