Start of Content Area

Object documentation FileUpload API Locate the document in its SAP Library 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

·        data

This property is deprecated, use resource instead.

·        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 of the Property resource for FileDownload and FileUpload

·        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 be filled with the following values and is represented by the 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.

Overview of Inherited and Additional Properties

 

Name

Interface

Type

Initial Value

Bindable

Value Required

data

IWDFileUpload

Object

 

bindable_mandatory

No

enabled

IWDUIElement

boolean

true

bindable

No

fileName

IWDFileUpload

String

 

bindable

No

resource

IWDFileUpload

IWDResource

 

bindable_mandatory

Yes

textDirection

IWDFileUpload

WDTextDirection

inherit

bindable

No

tooltip

IWDUIElement

String (TranslatableText)

 

bindable

No

visible

IWDUIElement

WDVisibility

visible

bindable

No

width

IWDFileUpload

String

 

bindable

No

 

 

End of Content Area