Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

Button is one of the core elements and supported well on on technologies.

Properties

Property

Fires Events

Possible Values

Notes

action (String)

No

 

The URL to send the file upload form post to

onuploadsuccess

No

 

Controller method to be called the form is posted

onuploadfailure

No

 

Controller method to be called the form post fails

Methods

submit() - Posts the form to the URL specified in the action property.
addParameter(String name, String value) - Additional values to add to the posting form.
setSelectedFile(String name) - file to select in the upload dialog. Note this is increasingly not supported in browsers.

Sample Usage

<pen:fileupload id="fileUpload"
  action="../UploadService" onuploadsuccess="controller.uploadSuccess()"
  onuploadfailure="controller.uploadFailure()"/>
  • No labels