LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send picture via multipart/form-data vi not working. CURL is working well

Good morning, community!


I am trying to send a photo to the Telegram server via a multipart/form-data POST.
This is a screenshot from the Telegram API documentation:

 

tptim_0-1749186272004.png


I am trying to use LabVIEW's own POST Multipart.vi, but no matter what I do, it does not work.
The response from the server is always an error.

tptim_1-1749186394786.png

 

If I use CURL via cmd, it works perfectly. There are no problems.
I have attached the test VI with both methods. (I have changed the user ID and API token.)


Can someone please help me by telling me what I am doing wrong? - I have never used the POSTMultipart.vi before.


tptim_2-1749186925157.png

 

Thank you very much.
Best regards,
Tim

0 Kudos
Message 1 of 2
(233 Views)

Not that I have any experience with this but since "Name" is the form field name it should be "photo" instead of "BeispielName".

0 Kudos
Message 2 of 2
(203 Views)