Property

Method

Event

 

 

FtpFileScope

Checks the location category of the files embedded in the Web documents being transferred to an FTP server and determines whether to transfer the files according to the recognized category.

Syntax

    [get] HRESULT FtpFileScope(
    long* pVal
    );
    [put] HRESULT FtpFileScope(
    long newVal
    );

Parameters

[get] pVal

[out, retval] Returns the current category of the file.

[put] newVal

[in] Specifies the category of files to be transferred.

0

Transfers the local files only. (Default)

1

Transfers both the local and remote files.

Return Values

0 (always)

Remark

There are two "location categories": on the local computer or on the remote server.

 

If image files on the remote server are embedded in a Web document, they can be properly displayed even when the files are not transferred to the FTP server. However, when the image files are removed from the remote server, the Web document will be displayed without the images.

 

In conclusion, if you set the priority to the hard disk size of the FTP server, it is better to transfer the local files only. If the storage of the data is the first priority, transfer both the local and remote files.

Sample Codes

VBScript

dim files()
dim object
set object = Document.editForm
object.wec.FtpFileScope = 0 'Transfers only the local files.
object.wec.FtpFileFilter = 0
object.wec.FtpOverwrite = 0
object.wec.FtpPassiveMode = 1
object.wec.FtpPort = 21
object.wec.FtpUserName = "admin"
object.wec.FtpPassword = "adminxxx"
object.wec.FtpUpload "www.myhome.co.kr", "/public_html", "index.htm"
'GET
filescope = object.wec.FtpFileScope ' Gets the specified setting of the location category.
filefilter = object.wec.FtpFileFilter
overwrite = object.wec.FtpOverwrite
passivemode = object.wec.FtpPassiveMode
port = object.wec.FtpPort
username = object.wec.FtpUserName
password = object.wec.FtpPassword

See Also

FtpFileFilter, FtpOverwrite, FtpPassiveMode, FtpPassword, FtpPort, FtpUpload, FtpUserName, OnFtpUploadComlated