|
A number of ASP settings become very relevant when performing uploads.
These can be changed using IIS settings or by editing the registry
or IIS Metabase. However it is often easier and safer to alter them
using the simple scripting commands given here.
The script time-out refers to the number of seconds an Active Server
Page is given before the script is assumed to have failed and the
page terminated. If you are uploading a large file the script that
is receiving the transfer may time out before the file has been
completely uploaded. To alter this setting you should insert the
following code into your uploading page prior to creating any ABCUpload
objects.
Server.ScriptTimeout = 300 ' five minutes
The session time-out is similar to the script time-out but refers
to the number of minutes before the user session is aborted. Again
if a large file is being uploaded it is desirable to maintain the
session state. The session time-out should always be longer than
the script time-out. Note that this value is only relevant if you
have session state enabled. To alter this setting you should insert
the following code into your uploading page prior to creating any
ABCUpload objects.
Session.Timeout = 20 ' twenty minutes
The UploadReadAheadSize property determines the number of bytes
a Web server will read into a buffer and pass to IIS. For large
uploads a greater value may increase the speed of uploads at the
cost of increased memory use. This can be altered within the IIS
Metabase using Microsoft MetaEdit which is supplied as part of the
Windows Resource Kits. If you are not familiar with the IIS Metabase
and MetaEdit we suggest you do not alter this value.
|