xforms:upload

Purpose

Enables the uploading of binary data in a form. The processing of the file upload is the responsibility of the calling application. The element only results in markup on HTML based protocols.

Note:

The use of xforms:upload with fragmented forms is not supported and will result in undefined behavior.

Note:

The use of xforms:upload may prevent MCS from fixing device specific issues with submitting forms. Please be advised that it is the page author's responsibility to deal with any resulting problems.

Note:

WML does support file upload. Using this element may cause some WML browsers to show an error when the page is processed.

Contains

Attribute groups

Example

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:xforms="http://www.w3.org/2002/xforms"
  xmlns:mcs="http://www.volantis.com/xmlns/2006/01/xdime/mcs"
  xmlns:si="http://www.volantis.com/xmlns/2006/01/xdime2/si">
  <head>
    <title>xforms:upload</title>
    <xforms:model id="model">
      <xforms:instance>
        <si:instance>
          <si:item name="data"/>
        </si:instance>
      </xforms:instance>
    </xforms:model>
  </head>
  <body>
    <p>
      <xforms:upload ref="data" model="model">
        <xforms:label>Upload a file:</xforms:label>
      </xforms:upload>
    </p>
  </body>
</html>

Related topics