Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
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

HTML
@using (Html.BeginForm("Details", "Home", FormMethod.Post, new { id = "Form" })) 
{
    <input type="file" name="file" />
    <input type="submit" value="submit" />
}

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..
Posted
Updated 26-May-12 0:24am
v2

1 solution

This [^] looks like a very good article on uploading files to the server.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900