Results 1 to 16 of 16

Thread: [02/03] Retrieve An XML File From HTTP POST

Hybrid View

  1. #1
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    169

    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
  •  



Click Here to Expand Forum to Full Width