Web.ReqFiles.TWebRequestFile.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(const AFieldName, AFileName, AContentType: string;  AContent: Pointer; AContentLength: Integer);

C++

__fastcall TWebRequestFile(const System::UnicodeString AFieldName, const System::UnicodeString AFileName, const System::UnicodeString AContentType, void * AContent, int AContentLength);

Properties

Type Visibility Source Unit Parent
constructor public
Web.ReqFiles.pas
Web.ReqFiles.hpp
Web.ReqFiles TWebRequestFile

Description

Creates an initializes an instance of TWebRequestFile.

Typically, applications do not call the TWebRequestFile constructor. Instead, new Web request file objects are created by calling the Add method of a TWebRequestFiles collection as the file uploads are extracted from the current Web request.

AFieldName is the name of the adapter field whose value this file represents. It becomes the value of the FieldName property.

AFileName is the name of the file this object represents. It becomes the value of the FileName property.

AContentType describes how the file content is encoded. It becomes the value of the ContentType property.

AContent is an array of bytes that is the content of the file. It is used to initialize the Stream property.

AContentLength is the number of bytes in AContent.

See Also