Mark Nutter schrieb:

Have a look at this section:

   data="--" + boundary + nl
   data = data + _
       "Content-Disposition: form-data; name=""userfile""" + nl
+ nl + _
       encodedFileName + nl

This uploads the equivalent of an HTML <input> field named
"userfile".  To upload more data, repeat this section with
different values for the "name=" part and the encodedFileName
variable.

Yes i tried it this way, but have a problem.

My code (part):

=======
  data="--" + boundary + nl
  data = data + _
      "Content-Disposition: form-data; name=""userfile""" + nl + nl + _
      encodedFileName + nl

// add a 2nd variable
  data="--" + boundary + nl
  data = data + _
      "Content-Disposition: form-data; name=""funktion""" + nl + nl + _
      "test" + nl

  data = data + "--" + boundary + nl


  data = data + _
"Content-Disposition: form-data; name=""bildbinary""; filename=""" + _
      encodedFileName + """" + nl +_
      "Content-Type: image/jpeg" + nl + _
      "Content-Length: " + FormatLen(lenb(rawdata)) + nl + _
      "Content-Transfer-Encoding: binary" + nl + _
      nl + rawdata + nl

  data = data + "--" + boundary + nl + nl
======

If i add a 2nd variable to it i became only the 2nd (test) to the Server. The first userfile variable is not sending. And also the File is not going to the server.

I think but can not discribe the problem with the """ or nl(linebreaks) Syntax ?

I have between the parts set the boundarys, and it should be working.



Christian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to