该表单可与poster一起使用,但在服务器和本地不起作用。错误在主题标题中。
<form class="form" action="POST">
<div class="input-group">
<label for="withdraw-address" class="form-label"> Withdraw Address </label>
<input name="withdraw-address" type="text" class="form-control" id="withdraw-address">
</div>
<div class="input-group">
<label for="receive-address" class="form-label"> Receive Address</label>
<input name="receive-address" type="text" class="form-control" id="receive-address">
</div>
<div class="input-group">
<label for="quanity" class="form-label"> Quanity </label>
<input name="quanity" type="text" class="form-control" id="quanity">
</div>
<div class="input-group">
<label for="remark" class="form-label">Remark</label>
<input name="remark" type="text" class="form-control" id="remark">
</div>
<div class="input-group">
<label for="withdraw-snapshot" class="form-label">Withdraw Snapshot</label>
<input name="withdraw-snapshot" type="file" class="form-control" id="withdraw-snapshot" aria-describedby="inputGroupFileAddon04" aria-label="Upload">
</div>
<button type="submit" class="btn-form">Submit</button>
</form>
更改此行
<form class="form" action="POST">
至
<form class="form" action="POST" enctype="multipart/form-data">
那么问题就解决了。
如果表单包含多部分数据(多媒体数据,例如文件(,请确保将的"附件类型">从"application/x-www-form-urlencoded">(默认(为"strong>";多部分/形式数据"。