Skip to content

Instantly share code, notes, and snippets.

@WietseWind
Created May 27, 2016 13:07
Show Gist options
  • Save WietseWind/75eeb1dc412f9687d5eb4b2ea9b3cfe0 to your computer and use it in GitHub Desktop.
Save WietseWind/75eeb1dc412f9687d5eb4b2ea9b3cfe0 to your computer and use it in GitHub Desktop.
QR code uit een file upload
<h1>QR Reader</h1>
{% if param.files(true).foto.data %}
{#{% set data = api.IO_staticFile('qr/test.png').get() %}#}
{{ api.Barcode_QR(param.files(true).foto.data)|pre }}
{% else %}
<form id="form-invullen" method="post" action="{{ index }}" role="form" enctype="multipart/form-data">
<input type="file" name="foto" class="file" />
<button type="submit" class="btn btn-groen autodisable">Verstuur</button>
</form>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment