FileElement AddFile Method (String, String, String)C# API
Adds a file to the list of files to upload. It will be uploaded when the Form which contains this FileElement is sent to the web server.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.5.77 (1.0.0.0)
Syntax

public void AddFile(
	string filename,
	string path,
	string contentType
)

Parameters

filename
Type: System String
The name of the file.
path
Type: System String
The location of the file on disk. This can either be an absolute path, or a relative path. If it is a relative path, then it is relative to the data/Files directory for the current injector.
contentType
Type: System String
The Content-Type to specify when sending this file (e.g. "text/plain", "image/gif").
Remarks

The default Content-Transfer-Encoding is "".
See Also