1、標簽input在type="file"時,name是必須屬性 ...
1、標簽input在type="file"時,name是必須屬性
1 <form id="MainFileUpload" name="MainFileUpload" enctype="multipart/form-data"> 2 <div class="cls_MainFileUpload"> 3 <div class="cls_MainFileUpload2"> 4 <img id="MainFileUploadBtnImg" class="cls_MainFileUploadBtnImg" alt="" src="" /> <input class="cls_FileUpload" type="file"" id="{0}_FileUpload" name="FileUpload"/> 5 </div> 6 </div> 7 </form>
標簽input在type="file"時,name是必須屬性,如果沒有name屬性,那麼在表單提交時,文件不能被提交(即上傳)
後續更新中,敬請期待...