Not Able to Assign value to file uploade control in mvc
<li class="lifile">
 <input type="file" id="fileToUpload" name="file" value="@ViewBag.msg" />
 <span class="field-validation-error" id="spanfile"></span>
 </li>
Not Able to Assign value to file uploade control in mvc
<li class="lifile">
 <input type="file" id="fileToUpload" name="file" value="@ViewBag.msg" />
 <span class="field-validation-error" id="spanfile"></span>
 </li>
 
    
    You cannot assign Value to input type = file, for Security Reasons
Maybe This will help How to set a value to a file input in HTML?