|
-
May 23rd, 2008, 04:59 PM
#1
Re: [02/03] Retrieve An XML File From HTTP POST
Request.Files, that was it!!
I knew there was something I was forgetting, but this was from long ago. Anyways, to test your code, you will need to set the enctype in your <form> tag.
Code:
<form method="post" enctype="multipart/form-data"
action="http://example.com/yourfile.aspx">
<input type="file" name="file1" id="file1" />
<br/>
<input type="file" name="file2" id="file2" />
<br/>
<input type="submit" value="Go" id="Go" name="Go" />
</form>
Without it, Request.Files won't work. I suppose it'd be worth having a word with them to ensure that the encoding type is indeed multipart/form-data.
-
May 23rd, 2008, 05:09 PM
#2
Thread Starter
Addicted Member
Re: [02/03] Retrieve An XML File From HTTP POST
Hi, I don't fully understand!! (it's 11pm on Friday night!!!)
If I use <form method="post" enctype="multipart/form-data" action="http://example.com/yourfile.aspx"> on Page1 (sender page), do I need to include the enctype="multipart/form-data" on Page2 (catcher page) as well? I tried something very similar to this last night but it didn't seem to call Page2. I know that there were some pedantics about removing the runat=server attribute from the form tag etc.
Sorry for the extra questions, but as they say over here "fair exchange is no robbery" (taking credit for the request.files!!)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|