[英]Async file upload with jquery and ASP.NET
You need to add enctype="multipart/form-data"
to the HTML form, like this: 您需要将
enctype="multipart/form-data"
到HTML表单中,如下所示:
<form enctype="multipart/form-data">
OR 要么
YourForm.Attributes.Add("enctype", "multipart/form-data");
You also need to verify that your HTML <input>
of type file has a name
attribute, like this: 您还需要验证文件类型的HTML
<input>
是否具有name
属性,如下所示:
<input type="file" name="MyFileInput" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.