0
好吧,所以我有一个奇怪的文件上传问题。我在cshtml文件中设置了一些这样的代码。ASP.Net MVC文件上传不起作用
<form method="post" action="~/meme/createcustom2" id="submitimage" name="submitimage">
<div class="drag-box">
<div class="drag">
<div id="dragandrophandler">
<label class="hand">
Drag File or
Click to Upload…
<input type="file" id="uploadFile" name="uploadFile"> </label>
</div>
</div>
<span class="or">Or</span>
<span class="uploadBtn" id="uploadBtn">
<a href="#" class="btn">UPLOAD <i class="fa fa-upload" aria-hidden="true"></i></a>
</span>
<p>Choose an image from your computer</p>
</div>
而且不管我做了什么,文件都没有上传。我会看到Forms集合中的条目,但在Files集合中没有条目。那整个上午都让我烦恼不已。
我缺少什么?