Recent

Author Topic: Upload multipart POST request with Synapse does not work expected way.[SOLVED]  (Read 789 times)

rvk

  • Hero Member
  • *****
  • Posts: 6944
Re: Upload multipart POST request with Synapse does not work expected way.
« Reply #15 on: February 06, 2026, 11:07:43 am »
It is still broken.
18<CQZ:2>15<LOTW_QSL_SENT:1>N<LO
Your file is broken too. It can't sent what isn't there.
Check your ClubStream.adi.
That's the one that's cut off.

OH1KH

  • Jr. Member
  • **
  • Posts: 80
Oh no!
Yes, the file seems to be broken.
And I finally found the reason. THANK YOU!

The file is created elsewhere, then this function is called.
File creation is inside try-Finally-End, and also function is called from inside.

But the file is closed later at the Finally part.
So it is left open while function is called and  it is not flushed causing missing chars (BTW: one file block is 512 bytes, the second block was not yet flushed ! )

Program is run and I see from debug that last line was broken.
Then I look the file and it is complete!
That is because it is closed at the Finally part that happens before I peek the file!

Very hard to find out!

I moved the file close just before calling then function and now output is complete. Every time.

Case is closed.
MANY THANKS!
--
Saku

 

TinyPortal © 2005-2018