<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Simple PHP POST Code to Labview Code in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/Simple-PHP-POST-Code-to-Labview-Code/m-p/3814582#M1077458</link>
    <description>&lt;P&gt;Hello Friends,&lt;/P&gt;
&lt;P&gt;i did not get this simple PHP Code to an Labview Code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;form action="https://api.telegram.org/bot&amp;lt;scripttoken&amp;gt;/sendDocument" method="post" enctype="multipart/form-data"&amp;gt;

    &amp;lt;input type="text" name="chat_id" value="&amp;lt;chatId&amp;gt;" /&amp;gt;
    &amp;lt;input type="file" name="document"  /&amp;gt;
    &amp;lt;input type="submit" value="send" /&amp;gt;

&amp;lt;/form&amp;gt;&lt;/PRE&gt;
&lt;P&gt;I have problems with the the file that i want to send. I got an error from the API back, that the path to my file is wrong. I do not know how to format it right for enctype="multipart/form-data".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="labview.JPG" style="width: 876px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/231328iDC3936A79AF25EB6/image-size/large?v=v2&amp;amp;px=999" role="button" title="labview.JPG" alt="labview.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you help me out?&lt;/P&gt;
&lt;P&gt;Here is the API description. You can check under sendDocument. But the parameters are ok, because the PHP is working.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://core.telegram.org/bots/api" target="_self"&gt;https://core.telegram.org/bots/api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jul 2018 05:42:37 GMT</pubDate>
    <dc:creator>tptim</dc:creator>
    <dc:date>2018-07-10T05:42:37Z</dc:date>
    <item>
      <title>Simple PHP POST Code to Labview Code</title>
      <link>https://forums.ni.com/t5/LabVIEW/Simple-PHP-POST-Code-to-Labview-Code/m-p/3814582#M1077458</link>
      <description>&lt;P&gt;Hello Friends,&lt;/P&gt;
&lt;P&gt;i did not get this simple PHP Code to an Labview Code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;form action="https://api.telegram.org/bot&amp;lt;scripttoken&amp;gt;/sendDocument" method="post" enctype="multipart/form-data"&amp;gt;

    &amp;lt;input type="text" name="chat_id" value="&amp;lt;chatId&amp;gt;" /&amp;gt;
    &amp;lt;input type="file" name="document"  /&amp;gt;
    &amp;lt;input type="submit" value="send" /&amp;gt;

&amp;lt;/form&amp;gt;&lt;/PRE&gt;
&lt;P&gt;I have problems with the the file that i want to send. I got an error from the API back, that the path to my file is wrong. I do not know how to format it right for enctype="multipart/form-data".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="labview.JPG" style="width: 876px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/231328iDC3936A79AF25EB6/image-size/large?v=v2&amp;amp;px=999" role="button" title="labview.JPG" alt="labview.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you help me out?&lt;/P&gt;
&lt;P&gt;Here is the API description. You can check under sendDocument. But the parameters are ok, because the PHP is working.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://core.telegram.org/bots/api" target="_self"&gt;https://core.telegram.org/bots/api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 05:42:37 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Simple-PHP-POST-Code-to-Labview-Code/m-p/3814582#M1077458</guid>
      <dc:creator>tptim</dc:creator>
      <dc:date>2018-07-10T05:42:37Z</dc:date>
    </item>
  </channel>
</rss>

