标签: asp.net-mvc
无法在mvc
<li class="lifile"> <input type="file" id="fileToUpload" name="file" value="@ViewBag.msg" /> <span class="field-validation-error" id="spanfile"></span> </li>
答案 0 :(得分:0)
对于安全原因
也许这会有所帮助 How to set a value to a file input in HTML?