浏览文件的格式是什么?

编程入门 行业动态 更新时间:2024-10-27 18:31:34
本文介绍了浏览文件的格式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嘿, 我设计了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.

更多推荐

浏览文件的格式是什么?

本文发布于:2023-10-12 02:38:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1483525.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:格式   文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!