Show TOC

 FileUploadLocate this document in the navigation structure

Definition

You can use the FileUpload UI element to upload files from the client to the server. The UI element appears with an input field, in which the directory path and the file name appear, and a button for searching for the file.

Description of UI Element Properties
  • activateAccessKey

    Indicates whether access key for this control is activated. More information: Enabling Access Keys

  • data

    This property is deprecated, use resource instead.

  • explanation

    specifies the explanation text. More information: Explanation

  • fileName

    This property is deprecated, the file name is determined by the resource property.

  • resource

    Specifies the data source and contains the data, the file name, and the MIME type.For more information on data binding of this property, see Data Binding for resource Property .

  • state

    displays the status of the FileUpload. The state property can take the following values and is represented by enumeration type WDState.

    • normal
    • required. The required state is displayed by an asterisk.
  • textDirection

    Specifies the text direction and allows you to use FileUpload UI elements for texts in languages which require a specific text direction. The textDirection property can take the following values and is represented by enumeration type WDTextDirection.

    inherit

    The text direction is inherited from the parent element. Therefore, the text direction is identical to the one of the parent element.

    ltr

    The text runs from left to right.

    rtl

    The text runs from right to left.

The default value for this property is inherit.

  • width

    Determines the width of the FileUpload UI element that you can specify in CSS sizes, such as em, ex, pixels or percentage values.

Properties Overview
Name Interface Type Initial Value Bindable

activateAccessKey

IWDFileUpload

boolean

false

not bindable

data

IWDFileUpload

Object

 

bindable_mandatory

enabled

IWDUIElement

boolean

true

bindable

explanation

IWDFileUpload

String

 

not_bindable

fileName

IWDFileUpload

String

 

bindable

resource

IWDFileUpload

IWDResource

 

bindable_mandatory

state

IWDFileUpload

WDState

normal

bindable

textDirection

IWDFileUpload

WDTextDirection

inherit

bindable

tooltip

IWDUIElement

String (TranslatableText)

 

bindable

visible

IWDUIElement

WDVisibility

visible

bindable

width

IWDFileUpload

String

 

bindable

 

activateAccessKey;IWDFileUpload;boolean;false;not bindable

state;IWDFileUpload;WDState;normal;bindable;no