The filename element

Release 2.0 - ...

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

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 filename element.