CacheRequest Property

 Object: ResumeInfo
 Syntax: oResumeInfo.CacheRequest [=Boolean]
 Type: Boolean
 Default Value: True
 Read/Write: Read/Write
 Description: In a resumable upload, CacheRequest tells the XFRequest object to either cache the entire request or just store information about the request.

If CacheRequest is set to true XFile will save copies of the files to upload before sending the upload request. In a resumable upload, enabling CacheRequest guarantees the integrity of the files and any form/post data in the resume request.

If CacheRequest is set to false, XFile will not pre-cache the files. The request may still be resumable, but the request data may be corrupt, if the files to transfer were altered.

CacheRequest is set to true by default.

When CacheRequest is enabled uploads will be slower and will require more disk space.
 Example:
        
... 
Set XFileResumeInfo = SAXFile.ResumeInfo
            
'--- Set Resumable to True to allow the upload to be resumed.
XFileResumeInfo.Resumable = True 

'--- If CacheRequest is set to True XFile will save copies of the 
'--- files to upload before sending the upload request. In a resumable 
'--- upload, enabling CacheRequest guarantees the integrity of 
'--- the resumed request.
XFileResumeInfo.CacheRequest = True 

'--- StatusUrl specifies the URL of the FileUpEE status script 
'--- to which XFile will send the upload status request, when 
'--- resuming an upload. 
XFileResumeInfo.StatusUrl = "http://localhost/XFileResumeUpload/status.asp"
... 
      

Copyright © 2010 SoftArtisans, Inc. All rights reserved.