System.Net.Mime.TMultipartFormData.AddFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddFile(const AField, AFilePath: string;
const AContentType: string = ''; AHeaders: TStrings = nil);

C++

void __fastcall AddFile(const System::UnicodeString AField, const System::UnicodeString AFilePath, const System::UnicodeString AContentType = System::UnicodeString(), System::Classes::TStrings* AHeaders = (System::Classes::TStrings*)(0x0));

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Net.Mime.pas
System.Net.Mime.hpp
System.Net.Mime TMultipartFormData

Description

Adds a file field to the form data.

AddFile has the following parameters:

  • AField: Refers to the field name.
  • AFilePath: A string that specifies the file path.
  • AContentType: An optional Content-Type attribute value for the file. If not specified, then application/octet-stream will be used.
  • AHeaders: Optional parameter that allows specifying additional headers for a section of multipart/form-data content. The default value is Nil.

See Also