浏览文件的格式是什么? [英] what is the format for an browse file?

查看:142
本文介绍了浏览文件的格式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,

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


这篇关于浏览文件的格式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆