# HG changeset patch # User bsw # Date 1533311119 -7200 # Node ID 047a4c0f17feec285284a7bc389e1ed6c890d38d # Parent 63970058b2dc29084230eea429e2cc75905af517 Fixed wrong place to set correct form enctype diff -r 63970058b2dc -r 047a4c0f17fe app/main/registration/register.lua --- a/app/main/registration/register.lua Fri Aug 03 17:43:37 2018 +0200 +++ b/app/main/registration/register.lua Fri Aug 03 17:45:19 2018 +0200 @@ -7,9 +7,9 @@ ui.container{ attr = { class = "mdl-cell mdl-cell--12-col" }, content = function() ui.form{ - attr = { onsubmit = "document.getElementById('register_button').disabled = true;" }, + attr = { onsubmit = "document.getElementById('register_button').disabled = true;", enctype = 'multipart/form-data' }, module = "registration", action = "register", - enctype = 'multipart/form-data', + routing = { error = { mode = "forward", module = "registration", view = "register" } },