RESTful Upload Element

Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Advanced Guides | Troubleshooting | About

Table of Contents

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()'.


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


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

Date: 2014-11-12 19:50:50 CST

Author: Steffen Panning

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0


Note:To specify code blocks, just use the generic code block syntax:
<pre><code>your code here</code></pre>

comments powered by Disqus