RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebRequestFile Class

TWebRequestFile describes the content of a file extracted from an HTTP request.

Pascal
TWebRequestFile = class(TAbstractWebRequestFile);
C++
class TWebRequestFile : public TAbstractWebRequestFile;

TWebRequestFile describes and provides access to an uploaded file from an HTTP request. The following properties support this access: 

FileName, which gives the name of the uploaded file. 

FieldName, which gives the name of the adapter field whose value is the uploaded file. 

ContentType, which describes how the file data is encoded. 

Stream, which is a stream object from which you can read the file content. 

Each TWebRequestFile object describes a single uploaded file. A collection of all the uploaded files from the current request is available as the Files property of TWebRequest. In addition, adapter fields that work with uploaded files surface those files using a TUpdateFileList object or IActionFieldValues interface. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!