gpt4 book ai didi

javascript - 在 ASP.NET 中上传文件

转载 作者:行者123 更新时间:2023-11-29 17:31:29 24 4
gpt4 key购买 nike

我的网络表单使用 javascript 动态创建输入文件控件:

var input = document.createElement("input");
input.setAttribute("type", "file");
div.appendChild(input);

如何从服务器端的这些控件获取“PostedFile”?

最佳答案

如果它与其他所有内容一起发布到表单,那么内容应该在 Request.Files 集合中。

关于javascript - 在 ASP.NET 中上传文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3497001/

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