【发布时间】:2012-03-16 21:20:38
【问题描述】:
您好,我的 grails gsp 中有以下代码
<form action="upload-script-url" method="post" enctype="multipart/form-data">
<table class="table"style="width: 75%">
<tr>
<td>
<span style="font-weight: bold; ">Select the Source File:</span>
<input size="75" type="file" id="payload" name="payload"/>
</td>
</tr>
<tr>
<td>
<input type="submit" class="red" id="Run">Run</button>
</td>
</tr>
</table>
</form>
我从:here 读取表单参数
这些是 html 表单中的正确参数吗?
现在我应该如何继续从所选文件中读取数据?我必须使用 apache commons fileupload api 吗?
谢谢
【问题讨论】:
-
非常缺乏搜索技能。这在 SO 和实际的 Grails 文档中得到了回答(如上文和下文所述)。
标签: grails file-upload groovy file-read