(03-16-2022, 12:55 AM)Alexandre Machado Wrote: This doesn't look right to me. I believe you are not sending the data (the file) with proper content-type header field. It needs to be "multipart/form-data" so IW will parse the content out of that stream for you, automatically, set the file name accordingly, etc.
Hello,
The program who sends the request is an old one done in C#
the code in C# is:
WebClient wc = new WebClient();
byte[] responseArray = wc.UploadFile(url, "POST", fileName);
Log.Text = Log.Text + "\nSubirFichero.responseArray: " + System.Text.Encoding.ASCII.GetString(responseArray);
sw.WriteLine(Log.Text);
wc.Dispose();
where filename is a file from client pc who sends the request to the server (url) that is a content handler in IW.
I don't add any header to it. I think visual studio do that within uploadfile function.
Maybe there is any incompatibility between visual studio and intraweb?
Thank you
Blanca

