您能否建议如何在 kendo ui upload 中只允许上传 1 个文档。如果文件已被选择,那么我们无法上传新文件。请找到下面的代码。谢谢
<div class="configuration k-widget k-header">
<span class="infoHead">Information</span>
<p>
The Upload can be used as a drop-in replacement
for file input elements.
</p>
<p>
This "synchronous" mode does not require
special handling on the server.
</p>
</div>
<form method="post" action='@Url.Action("Submit")' style="width:45%">
<div>
@(Html.Kendo().Upload()
.Name("files")
)
<p>
<input type="submit" value="Submit" class="k-button" />
</p>
</div>
</form>
最佳答案
See Kendo.MVC.UI.Fluent Doc's for Multiple(System.Boolean)
@(Html.Kendo().Upload()
.Name("files")
.Multiple(false)
)
关于kendo-ui - kendo ui上传,仅限制1个文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14948062/