我想在dropzone中删除文件后将文件拖到放置区域,然后必须附加HTML文件上传控件。并在点击提交按钮上传文件。
<form name="form1" method="post" enctype="multipart/form-data" action="index.php">
<div id="dropContainer" style="border:1px solid black;height:100px;width:100px;">
Drop Here
</div>
Should update here: <input type="file" name="fileInput" id="fileInput" />
<input type="submit" name="submit" value="submit"/>
</form>
答案 0 :(得分:1)
答案 1 :(得分:1)
我想将附件说明字段验证为必填字段,不要上传文件。单击提交按钮后,仅上载文件并验证所需字段。
<form name="form1" method="post" enctype="multipart/form-data" action="index.php">
<div id="dropContainer" style="border:1px solid black;height:100px;width:100px;">
Drop Here
</div>
<div>
Attachment Description : <input type="text" name="description" id="description" required>
</div>
<div>
Should update here: <input type="file" name="fileInput" id="fileInput" />
</div>
<input type="submit" name="submit" value="submit"/>
</form>
&#13;