Author: Steffen Panning

# RESTful Upload Element

Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | About

## Table of Contents

- 1 RESTful Upload Element - #restful_upload {}

## 1 RESTful Upload Element - #restful_upload {}

The button element produces an HTML input element that has type attribute 'file'. The input element represents a file-choose dialog. When the restful_submit element is clicked, the chosen file will be uploaded to the server. To fetch the content of the uploaded file, You first have to get the request-bridge by calling 'wf_context:request_bridge()'; after that you have to query for the uploaded file by searching the elements returnd by 'post_files()'.

### Usage

    #restful_upload { id = upload, text="Go!" },
    %% later on return
    Req = wf_context:request_bridge(),
    UploadedFiles = Req:post_files(),
    %% ...

### Attributes

text - (string)
  The button's title.
html_encode - (boolean)
  Set to true to safely html-encode the text.
html_name - (string)
  The name attribute of the restful_upload

### See Also

- Base
- Link
- Textbox
- Password
- Textarea
- Checkbox
- Dropdown
- Dropdown Option
- RESTful Form
- RESTful Reset
- RESTful Upload

Date: 2012-10-18 03:24:42 CDT

Author: Steffen Panning

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0

## Comments

Note:To specify code blocks, just use the generic code block syntax:

    <pre><code>your code here</code></pre>

comments powered by Disqus