1 Reply Latest reply on Jan 8, 2009 11:10 PM by anirudhs

    How to Send multipart/related form

      Hi guys;

      I'm trying to send an HTTP POST request: A multipart/related form, with a FILE, and some info.

      The problem is that I can't select the kind of form I want, and Flex automatically choses another.
      I need to send data throug multipart/related form, because the Server-API only reads that Content-type.

        • 1. Re: How to Send multipart/related form
          anirudhs Level 2

          Normally FileReference is used for uploading files. That uses multipart/form-data to upload a file and overrides any contentType you set in URLRequest.

          Note that when setting contentType to any multipart variant, the syntax must be valid according to RFC.

          Are you using a URLLoader with a URLRequest in which the contentType is set and data is a String?