TopFolder Property

 Object: ResumeInfo
 Syntax: oResumeInfo.TopFolder [=Folder Path]
 Type: String
 Default Value: None
 Read/Write: Read/Write
 Description: In a resumable file transfer, TopFolder specifies the folder in which to store request data before initiating a file transfer. If CacheRequest is set to true, the whole file transfer request will be stored in the folder specified by TopFolder. If CacheRequest is set to false, only information about the request will be stored.

If TopFolder is not set, XFile will store request data in the user's temp directory.

Note that there is a security risk involved in using the user's temp directory. If a user runs two Web applications that use XFile for resumable transfers, and both applications save data to the default client temp directory, each application will have access to the RequestRecord s of the other Web application. To keep your application's RequestRecords secure, set TopFolder. You can use FileManager's CreateFolder method to create a directory on the client’s machine.
 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 

'--- XFile stores request data in the folder specified by TopFolder. 
'--- If CacheRequest is set to true, the whole upload request will 
'--- be stored in the folder specified by TopFolder. If CacheRequest 
'--- is set to false, only information about the request will be stored.
XFileResumeInfo.TopFolder = "C:\XFileResumeData\"
            
'--- 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.