Write to uploadTemp folder when site deployed to Windows Azure

Last post 01-28-2012, 1:42 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  01-26-2012, 1:48 PM 72838

    Write to uploadTemp folder when site deployed to Windows Azure

    Hi,
     
    I can set the temp folder in Ajax Uploader when the solution is hosted locally, either on my machine or network, but when I deploy the solution to the cloud (Azure), I cannot access the temp folder not matter what I try. Do you have a solution for this scenario?
     
    Thank you!
    Randy Sullivan
  •  01-28-2012, 1:42 AM 72854 in reply to 72838

    Re: Write to uploadTemp folder when site deployed to Windows Azure

    Randy,
     
    Can you manually set up a temp folder then try again?
     

    Setting temporary file location

    Unlike standard ASP.NET HtmlInputFile control, AJAX Uploader does not read the entire uploaded file into memory. It streams the data into a temporary file while the data is received. For this reason, you must specify a temporary file location. You should ensure that the ASPNET user (NetworkService in Windows Server 2003) has read/write permission to this specified folder.


    You can easily specify the temporary file location using the following two methods:

    1. Using TempDirectory property 

      For example:

      <CuteWebUI:Uploader id="Uploader1" TempDirectory="~/UploaderTemp" runat="server"></CuteWebUI:Uploader>
    2. Setting temporary file location in web.config 

      Add the following tag into the <appSettings> element of your application web.config file:
      <add key="CuteWebUI.AjaxUploader.TempDirectory" value="~/UploaderTemp"/>

      In web farm environments, the Url that you specify must map to a central location, which is saved to by all servers in the farm. This can be done using a virtual directory that maps to a common shared folder on the network.

      <add key="CuteWebUI.AjaxUploader.TempDirectory" value="\\shareserver\temp"/>

     


    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

View as RSS news feed in XML