1. Default value is 4kB bytes.
2. 0 (Zero) means that the source data are read in one block. There is no good idea to read whole data in one block - see note about IIS bellow.
3. If the source form size exceeds
ScriptUtils.
ASPForm.
MaxMemoryStorage value, ASPForm will consume only 2*ChunkReadSize of physical memory.
4. ChunkReadSize should be
ChunkReadSize * n1 =
PutReadSize
ChunkReadSize * n2 = UploadReadAheadSize
where n1 and n2 are integers.
Note about IIS
and source binary data stream: IIS reads 48kB of data first (by default, see
UploadReadAheadSize property of IIS). All other data are read in 8kB blocks
(see PutReadSize property of IIS). The best value for UploadReadAheadSize is 0 (zero), please see
ScriptUtils.
ASPForm.
Upload - Monitor and handle upload state/result article.
You can read/change this IIS
values for web server, web site, folder or exact upload script:
Dim WebServer, UploadReadAheadSize, PutReadSize
Set WebServer = GetObject("IIS://localhost/W3SVC[/sitenum[/folder[/uploadscript.asp]]]")
'Get UploadReadAheadSize property
UploadReadAheadSize = WebServer.UploadReadAheadSize
'Set another size
WebServer.UploadReadAheadSize = 0
'Get PutReadSize property
PutReadSize = WebServer.PutReadSize
'Set another size
WebServer.PutReadSize = 65536