Large Uploads in ASP



XFileEE

Most browsers support uploads of up to 2 GB. Larger uploads must be generated by a client-side control that can handle very large transfers, such as SoftArtisans XFileEE. Because XFileEE is an ActiveX component, it can only be used with the Microsoft Internet Explorer browser.

Top


FileUpEE Registry Keys

FileUpEE includes several registry keys that allow you to optimize the performance of large uploads. For more information see, FileUpEE Registry Keys.

Top


ScriptTimeout

ASP's ScriptTimeout property sets the length of time in seconds that ASP pages will allow for a script to execute. The default value of this property in IIS is 90 seconds. In a file upload, the ASP page must execute for the duration of the upload. If your user is transferring information over a slow line or is transferring a large quantity of information, it is easy to exceed this limit.

To increase the ASP ScriptTimeout in IIS:

  1. Right-click the application that will perform uploads, and select Properties.
  2. Select the Virtual Directory tab and click Configuration.
  3. Select App Options.
  4. In ASP Script Timeout, enter a value in seconds.

To increase the ASP ScriptTimeout in script, set the property Server.ScriptTimeout. For example:

<% Server.ScriptTimeout = 300 %>

The FileUpEE registry key DynamicAdjustScriptTimeout allows you to ensure that large uploads and downloads will not be timed out. If this key is set to True, IIS's ScriptTimeout value will be increased until an upload or download is complete.

To enable DynamicAdjustScriptTimeout:

  1. Open the Start menu and select Run...

  2. Enter regedit and click Ok.

  3. Open the folder HKEY_LOCAL_MACHINE\SOFTWARE\SoftArtisans\FileUpEE\Parameters.

  4. Double click DynamicAdjustScriptTimeout. An Edit DWORD Value dialog will open.

  5. In the Value Data field, enter 1.

Top


ConnectionTimeout

IIS's Connection Timeout property sets a time in seconds at which the server will disconnect an inactive connection. The default value is 900 seconds. To allow very large uploads to complete it may be necessary to increase this value. To reset Connection Timeout:

  1. In IIS, right-click Default web Site and select Properties.

  2. Select the Web Site tab.

  3. In the Connection Timeout box, enter a new value.

Top


Session State Considerations

When Session State is turned on, the page is serialized and the page is locked while the process finishes. During a large file transfer, this means that the user cannot take any other action on the page until the transfer is complete. If the page requires user action to be possible during a large transfer, the session state can be turned off by adding the statement <% EnableSessionState=False %> to the top of the page.

Top

Copyright © 2010 SoftArtisans, Inc. All rights reserved.