PRIM_WEB.File (PRIM_WEB.File)

File object selected using the file picker etc.

Ancestors - Object (PRIM_OBJT)

Details

A File object contains the details of the selected physical file object such as an image, video or sound.

Example

In this example, when a file is selected, the file name is used and the Blob is used to populate an image control as well as a Blob field.
Evtroutine Handling(#FilePicker.FileSelected) File(#File)
 
   #Filename := #File.Name
   #Image.FileName #xDemoblob := #File.Blob
 
Endroutine

Properties

NameDescription
BlobFile stored as a Blob
ComponentClassNameComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembersComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternNameComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTagGeneric space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentTypeComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeNameComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
FileSizeSize of the file
MimeTypeFile mime type
NameName of the file
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
ParentThe component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT)

Events

NameDescription
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from Object (PRIM_OBJT)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from Object (PRIM_OBJT)

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2