Implement local file upload with form.

This fixes the issue that after selecting a file it cannot
be uploaded directly again without selecting another
file in between.
This commit is contained in:
Stephan Mühlstrasser 2014-11-04 21:56:09 +01:00
commit 4c2624785f
4 changed files with 15 additions and 6 deletions

View file

@ -286,7 +286,12 @@
<div><xsl:value-of select="."/></div>
</xsl:when>
<xsl:when test="@type = 'file'">
<input class="{$APPCLASS}-{@class}" type="file" data-value="{$type},{$binding}"/>
<form class="{$APPCLASS}-{@class}" data-value="{$type},{$binding}">
<fieldset>
<input type="file"/>
<input type="submit" value="Load Local File" />
</fieldset>
</form>
</xsl:when>
<xsl:when test="@type = 'separator'">
<hr/>