Unit 'HTTPDefs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TUploadedFile

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Represents an uploaded file in an HTTP request

Declaration

Source position: httpdefs.pp line 216

type TUploadedFile = class(TCollectionItem)

public

  destructor Destroy; override;

  

Destroys the uploaded file instance

  property FieldName: string; [rw]

  

Form field name of the uploaded file

  property FileName: string; [rw]

  

Original filename of the uploaded file

  property Stream: TStream; [r]

  

Stream containing the uploaded file data

  property Size: Int64; [rw]

  

Size of the uploaded file in bytes

  property ContentType: string; [rw]

  

MIME content type of the uploaded file

  property Disposition: string; [rw]

  

Content disposition header of the uploaded file

  property LocalFileName: string; [rw]

  

Local temporary filename where file is stored

  property Description: string; [rw]

  

Description of the uploaded file

end;

Inheritance

TUploadedFile

  

Represents an uploaded file in an HTTP request

|

TCollectionItem

|

TPersistent

|

TObject,IFPObserved

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.


Documentation generated on: Jan 16 2026