Sign in Join
FPDoc Onlineexperiment

TUploadedFile class

In unit HTTPDefs

Represents an uploaded file in an HTTP request

Declaration

pascal
TUploadedFile = class(TCollectionItem)

Inheritance

  1. TUploadedFile
  2. TCollectionItem
  3. TPersistent
  4. TObject

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

FieldNamepublicForm field name of the uploaded file
FileNamepublicOriginal filename of the uploaded file
StreampublicStream containing the uploaded file data
SizepublicSize of the uploaded file in bytes
ContentTypepublicMIME content type of the uploaded file
DispositionpublicContent disposition header of the uploaded file
LocalFileNamepublicLocal temporary filename where file is stored
DescriptionpublicDescription of the uploaded file

Methods

DeleteTempUploadedFileprotected
GetStreamprotected
FreeStreamprotected
DestroypublicDestroys the uploaded file instance

Inherited

From TCollectionItem (12)

Changed Collection Create DisplayName GetDisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName SetIndex

From TPersistent (6)

Assign AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.