我正在cfdiv容器中提交文件,但文件的值未提交到处理页面。如果我在 之外提交文件cfdiv,它会看到文件值。但是,如果文件位于容器cfdiv或div容器中,则表单字段未定义。我也添加了 enctype="multipart/form-data",cfform但它仍然无法正常工作。
更新:
这是第一页 (index.cfm)
<div name="loadcontainer" id="loadcontainer">
<cfinclude template="homepage.cfm">
</div>
主页.cfm
<cfform name="school_create" id="school_create"
action="pro_create_school.cfm"
enctype="multipart/form-data"
method="post">
<cfinput size="50" type="file" id="school_logo" name="school_logo">
<button type="submit">Save</button>
</cfform>
单击保存按钮时,在动作处理页面中看不到该form.school_logo值。
我也尝试过使用普通的formandinput而不是 a cfform/cfinput,但是表单在提交时被加载到另一个选项卡中,而不是 div 容器。