本文介绍了浏览文件的格式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿, 我设计了html form.so,我指定了一个输入作为文件.当我浏览一个特定的文件时,当我单击``提交''时,该路径会出现在浏览文本中,这是在传输文件或路径... 我这样设计表格
helo, I designed the html form.so i specified one input as file.When i browse for a specific file that path appears in the browse text when i click submit it is transfering file or path... I designed the form like this
@using (Html.BeginForm("Details", "Home", FormMethod.Post, new { id = "Form" })) { <input type="file" name="file" /> <input type="submit" value="submit" /> }因此它会将文件或路径传输到控制器,而我的控制器是Home/Details,因此它将文件或路径传输到控制器(如果是path,请为我提供传输文件的解决方案.)
so it transfers the file or path to the controller and my controller is Home/Details so it transfers the file or path if it is path please provide me solution to transfer the file..
推荐答案此 [ ^ ]看起来非常关于将文件上传到服务器的好文章. This [^] looks like a very good article on uploading files to the server.
更多推荐
浏览文件的格式是什么?
发布评论