asp.net - posting file input type to a form -


First of all I should say that my problem occurs when I am trying to post in some other form.

I have 3 controls in one form: 1. Text input named "text1" 2. The file name is named "file1" 3. Submit input.

In the form a post method is on the second page, in the page load of the page posted, I am using the request ["text1"], which gives me the text of "text1"

P> In your initial form tag enctype = "multipart / Form-data " is required.

  & lt; Form method = "post" action = "somepage.php" antipype = "multipart / form-data" & gt; ... & lt; / Form & gt;  

If that does not help, then there is an article on this topic:


Comments