The mediatype element (for upload)

Release 2.0 - ...

Binding attributes on author-optional element mediatype specify the location in the instance for the parent element upload, when activated, to place the mediatype of the chosen binary resource, if available.

Example

XML CopyCode image Copy Code
<xforms:upload ref="/mail/picture/attach">
   <xforms:label>Upload File:</xforms:label>
   <xforms:filename ref="/mail/picture/name"/>
   <xforms:mediatype ref="/mail/picture/type"/>
</xforms:upload>

Attributes

Name Required / optional Description
Common Attributes optional Any attribute from the Common Attributes collection (e.g. id).
Single Node Binding Attributes required One or more attributes from the Single Node Binding Attributes group (ref, model, bind).

Content

This element does not allow content.

Specification

Link to the XForms specification: the mediatype element (for upload).