Skip to content

TUploadedFile

Represents an uploaded file in an HTTP request

Declaration

Source position: httpdefs.pp line 224

type

  TUploadedFile = class(TCollectionItem)
  public
    destructor Destroy;
    property FieldName: string; {rw}
    property FileName: string; {rw}
    property Stream: TStream; {r}
    property Size: Int64; {rw}
    property ContentType: string; {rw}
    property Disposition: string; {rw}
    property LocalFileName: string; {rw}
    property Description: string; {rw}
  end;

Description

TUploadedFile encapsulates information about a file uploaded through an HTML form using multipart/form-data encoding. It provides access to the file content, metadata, and properties such as filename, size, and content type.

Properties

Member Visibility Description
ContentType public MIME content type of the uploaded file
Description public Description of the uploaded file
Disposition public Content disposition header of the uploaded file
FieldName public Form field name of the uploaded file
FileName public Original filename of the uploaded file
LocalFileName public Local temporary filename where file is stored
Size public Size of the uploaded file in bytes
Stream read only public Stream containing the uploaded file data
See all Properties

Methods

Member Visibility Description
Destroy public Destroys the uploaded file instance
See all Methods