Web.HTTPApp.TAbstractWebRequestFiles.Items

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Items[I: Integer]: TAbstractWebRequestFile read GetItem; default;

C++

__property TAbstractWebRequestFile* Items[int I] = {read=GetItem/*, default*/};

Properties

Type Visibility Source Unit Parent
property public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TAbstractWebRequestFiles

Description

Lists the uploaded files in the collection.

Read Items to access the descriptions of the individual uploaded files in the collection.

I is the index of the file to access, where 0 indicates the first file, 1 indicates the second file, and so on. The value of I must be less than the value of the Count property.

Note: Items is the default property of TAbstractWebRequestFiles. This means that the property name can be omitted when using this property. Thus, the line:Upload := WebContext.Request.Files.Items[0];can also be writtenUpload := WebContext.Request.Files[0];

See Also