我尝试构建一个 grails webflow,其中包含一个包含文件上传字段的步骤。找不到明确的例子。我该怎么做?
表格如下所示:
<g:form method="POST" action="upload" enctype="multipart/form-data">
<input type="file" name="myFile" />
<input type="submit" value="Upload! " />
</g:form>
流程如下所示:
def rgdpsRequestFlow = {
chargeCheck{
on("upload"){
println "Hello file upload"
}.to("uploadSuccess")
}
uploadSuccess{
}
}
当我提交表格时,我得到
HTTP Status 404 - /webflowTest/mortgage/upload