You are not logged in.
Pages: 1
Hi,
crc := 'A8FBDC27';
MultiPartFormDataAddField('crc',crc,fMultipart);
after decode on server side
crc = 'A8FBDC2'
I think problem is in MultiPartFormDataEncode:
W.Add('--%'#13#10'Content-Disposition: form-data; name="%"'#13#10+
'Content-Type: %'#13#10#13#10'%'#10'--%'#13#10,
[bound,Name,ContentType,Content,bound]) else begin
should be
W.Add('--%'#13#10'Content-Disposition: form-data; name="%"'#13#10+
'Content-Type: %'#13#10#13#10'%'#13#10'--%'#13#10,
[bound,Name,ContentType,Content,bound]) else begin
Offline
Of course I have first tried this solution.
in MultiPartFormDataDecode
you have this line:
part.Content := copy(Body,i,j-i-2); // -2 to ignore latest #13#10
So in this case changing one line feed from #10 to #13#10 seems like right answer :-)
Offline
Offline
Thanks ab, works.
Offline
Pages: 1