webmcp
changeset 58:e2b8f9dcc4a6
Bug fix in ui.form related to file upload
author | bsw |
---|---|
date | Sun Dec 18 22:19:40 2011 +0100 (2011-12-18) |
parents | 6a830c1479b0 |
children | 4f9f7fef80ee |
files | framework/env/ui/form.lua |
line diff
1.1 --- a/framework/env/ui/form.lua Sun Dec 18 22:14:03 2011 +0100 1.2 +++ b/framework/env/ui/form.lua Sun Dec 18 22:19:40 2011 +0100 1.3 @@ -84,7 +84,7 @@ 1.4 prepare_routing_params(params, args.routing, args.module) 1.5 params._webmcp_csrf_secret = request.get_csrf_secret() 1.6 local attr = table.new(args.attr) 1.7 - if attr.enctype=="multipart/form-data" or slot_state.form_file_upload then 1.8 + if attr.enctype=="multipart/form-data" or args.file_upload then 1.9 slot_state.form_file_upload = true 1.10 if attr.enctype == nil then 1.11 attr.enctype = "multipart/form-data"