gpt4 book ai didi

kendo-ui - kendo ui上传,仅限制1个文档

转载 作者:行者123 更新时间:2023-12-02 19:58:47 27 4
gpt4 key购买 nike

您能否建议如何在 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com