TUploadedFile class
Represents an uploaded file in an HTTP request
Declaration
TUploadedFile = class(TCollectionItem)Inheritance
- TUploadedFile
- TCollectionItem
- TPersistent
- 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
FieldName | public | Form field name of the uploaded file |
FileName | public | Original filename of the uploaded file |
Stream | public | Stream containing the uploaded file data |
Size | public | Size of the uploaded file in bytes |
ContentType | public | MIME content type of the uploaded file |
Disposition | public | Content disposition header of the uploaded file |
LocalFileName | public | Local temporary filename where file is stored |
Description | public | Description of the uploaded file |
Methods
DeleteTempUploadedFile | protected | |
GetStream | protected | |
FreeStream | protected | |
Destroy | public | Destroys 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.
