REST.Client.TCustomRESTRequest.AddFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddFile(const AName, AFileName: string; AContentType: TRESTContentType = TRESTContentType.ctNone); overload;
procedure AddFile(const AFileName: string; AContentType: TRESTContentType = TRESTContentType.ctNone);  overload;

C++

void __fastcall AddFile(const System::UnicodeString AName, const System::UnicodeString AFileName, Rest::Types::TRESTContentType AContentType = Rest::Types::TRESTContentType())/* overload */;
void __fastcall AddFile(const System::UnicodeString AFileName, Rest::Types::TRESTContentType AContentType = Rest::Types::TRESTContentType())/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
REST.Client.pas
REST.Client.hpp
REST.Client TCustomRESTRequest

Description

Adds file content to the request.

This method is overloaded:

  • When using the first AddFile overloaded method, if the same AName parameter already exists, previous content is replaced by a new one.
  • When using the second AddFile overloaded method, only one file can be added. If this function is executed the second time, then previous content is replaced by a new one.

See Also