Has anyone successfully been able to post form-data message with URLConnection ?
x-www-urlencoded does not work for attachments, which is where form-data comes in.
I have been trying to manually make the form-data package but I am guessing Xojo is doing something when I call SetRequestContent that messes it maybe.
Format of the message in PostMan for Form data is as follows:
POST /filecontroller/api/sendfile HTTP/1.1
Host: localhost:5000
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name=“Component”
PictureEffects
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name=“Path”
Xojo x64
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name=“File”; filename="/C:/Users/Björn Eiríksson/Pictures/test.png"
Content-Type: image/png
(data)
----WebKitFormBoundary7MA4YWxkTrZu0gW