IN_FileUpload

All Editions image\bltlrgsq_shg.gif Related Functions  image\bltlrgsq_shg.gif Example

The IN_FileUpload function sends files of any allowable format from your local system onto an Internet server using either FTP or HTTP.

Syntax

int IN_FileUpload( protocol, pServer, pUserID, pPassword, port, pLocalFile, pRemoteFile )

Parameters

Values

Meaning

SHORT protocol

0 | 1

FTP | HTTP See Remarks.

CHARPTR pServer

name of the server (or IP address)

CHARPTR pUserID

string

valid user ID

CHARPTR pPassword

String

""

valid password

a password may not be required. See Remarks.

int port

0

other integer

default port number

valid port number. See Remarks.

CHARPTR pLocalFile

full name and path of the file to upload

CHARPTR pRemoteFile

name, path, or name and path of the file on the server. See Remarks.

Remarks

Internet Explorer 4.0, or better, is required for the HTTP protocol parameter to work.

Typically, a specific userID and password are required to upload a file.

The standard HTTP port is 80.

The pRemoteFile parameter allows you to specify a path on the server from the Web root, and give the file a new name.

If a Web server is set up with a secure upload folder, one requiring user name and password, only authorized users will be allowed to upload files. This function supports Basic authentication, so the user name and password are sent in clear text to the server.

Release information

Added to Imagenation for Windows in Release 7.0.

Not supported in Imagenation for UNIX.

See also

Uploading and downloading Internet files