Recent

Author Topic: Uploading Stream instead of file in THTTPClient  (Read 897 times)

egsuh

  • Hero Member
  • *****
  • Posts: 1789
Uploading Stream instead of file in THTTPClient
« on: April 05, 2023, 09:38:46 am »
Is this possible? Currently I can't find any document on this.

And can I add more than one file?

balazsszekely

  • Guest
Re: Uploading Stream instead of file in THTTPClient
« Reply #1 on: April 05, 2023, 10:31:19 am »
Is this possible? Currently I can't find any document on this.

And can I add more than one file?
Did you try method StreamFormPost?

PS: Please check the attachment from the following post: https://forum.lazarus.freepascal.org/index.php/topic,44795.msg315238.html#msg315238 , the demo project implements file upload with StreamFormPost.
« Last Edit: April 05, 2023, 10:36:23 am by GetMem »

egsuh

  • Hero Member
  • *****
  • Posts: 1789
Re: Uploading Stream instead of file in THTTPClient
« Reply #2 on: April 06, 2023, 08:52:25 am »
Quote
Did you try method StreamFormPost?

This works. Thank you very much.

 

TinyPortal © 2005-2018