Property

Method

Event

 

 

FtpFileFilter

Specifies or gets formats of the files to be transferred to an FTP server.

Syntax

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

Parameters

[get] pVal

[out, retval] Returns the formats of the files to be transferred.

[put] newVal

[in] Specifies the file format(s).

In case you want to specify different file formats, add a value with another value for a specific file format. For example, to transfer CSS and object files, enter '6', which is the sum of 2(for CSS) and 4(for object).

0

Do not include any file.

1

Image (Default)

2

CSS

4

object

8

Script

16

Applet

32

BackgroundSound

Return Values

0 (Always)

Remark

A file is not attached when you set FtpFileFilter as '0'.

Sample Codes

VBScript

dim files()
dim object
set object = Document.editForm
object.wec.FtpFileScope = 0
object.wec.FtpFileFilter = 0 'Transfers only the files being transferred.
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
filefilter = object.wec.FtpFileFilter ' Gets the specified file formats for transferring.
overwrite = object.wec.FtpOverwrite
passivemode = object.wec.FtpPassiveMode
port = object.wec.FtpPort
username = object.wec.FtpUserName
password = object.wec.FtpPassword

See Also

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