我的 Web 表单使用 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/