<?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 Re: Uploading file works on cloud but not local gateway in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24804#M13718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am still getting "BAD REQUEST" as reponse&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Oct 2018 13:42:43 GMT</pubDate>
    <dc:creator>Nehorai_Elbaz</dc:creator>
    <dc:date>2018-10-06T13:42:43Z</dc:date>
    <item>
      <title>Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24794#M13708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using sandBlast api, when I upload to the cloud all is fine, but when I try to upload to local gateway I&amp;nbsp;&lt;SPAN style="color: #3e3e3e; background-color: #ffffff; font-size: 16px;"&gt;receive&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="background-color: #ffffff; color: #333333;"&gt;code:1008,label:BAD_REQUEST, message: Invalid Multipart/form request&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Why?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;I'm not sending cookie to local gateway, I'm using CSharp.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;I found&amp;nbsp;&lt;A _jive_internal="true" href="https://community.checkpoint.com/thread/5716-upload-to-cloud-works-but-fails-on-local-server"&gt;the same issue here&lt;/A&gt;, but there is no answer yes, please If you can share a working code example for c# in local gateway.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 12:52:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24794#M13708</guid>
      <dc:creator>Ploni_Almoni</dc:creator>
      <dc:date>2018-09-05T12:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24795#M13709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So when not using API calls, but the local CLI, upload to local sandblast appliance works ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 13:24:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24795#M13709</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2018-09-05T13:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24796#M13710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using&amp;nbsp;&lt;A href="http://dl3.checkpoint.com/paid/2d/2dd5018d42e1752682e188827a2c4044/CP_1.0_R77_ThreatPreventionAPI_APIRefGuide.pdf?HashKey=1536137104_ab58dfdb0d4e67a12fd3d0acecb0cbbb&amp;amp;xtn=.pdf"&gt;This guide&lt;/A&gt;, there is no CLI here, can you share CLI guide? I will try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 13:36:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24796#M13710</guid>
      <dc:creator>Ploni_Almoni</dc:creator>
      <dc:date>2018-09-05T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24797#M13711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is easy - most of it&amp;nbsp;can be&amp;nbsp;found here: &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk114806&amp;amp;partition=Advanced&amp;amp;product=Threat#cpstat"&gt;sk114806 ATRG: Threat Emulation&lt;/A&gt;. How to manually emulate a file you can find in &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk110375"&gt;sk110375 How to emulate files manually on the SandBlast TE Appliance? &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 14:12:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24797#M13711</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2018-09-05T14:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24798#M13712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="The links leads to something like" class="image-1 jive-image j-img-original" src="https://community.checkpoint.com/legacyfs/online/checkpoint/70069_Cpont.PNG" /&gt;That what I see when I click the links the you mentioned&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 07:24:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24798#M13712</guid>
      <dc:creator>Ploni_Almoni</dc:creator>
      <dc:date>2018-09-06T07:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24799#M13713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may check this script to also get an idea how the API call looks for a local SB appliance:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-3091-using-sandblast-api-from-commandline" target="_blank"&gt;https://community.checkpoint.com/docs/DOC-3091-using-sandblast-api-from-commandline&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also please post your full API request ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Thomas&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2019 09:12:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24799#M13713</guid>
      <dc:creator>Thomas_Werner</dc:creator>
      <dc:date>2019-06-21T09:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24800#M13714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was succeeded to upload file to the gateway via SandBlast Chrome extension, but not via code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also was succeeded to perform a query from code to the local gateway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it fails when I try to upload a file to local gateway it always return "Bad request" "Invalid Multipart/form request", I have added my C# code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void Main(string[] args)&lt;BR /&gt; {&lt;BR /&gt; MainAsync(args).Wait();&lt;BR /&gt; }&lt;BR /&gt; static async Task MainAsync(string[] args)&lt;BR /&gt; {&lt;BR /&gt; string json = "{\r\n\t\"request\": {\r\n\t\t\"md5\": \"44D88612FEA8A8F36DE82E1278ABB02F\",\r\n\t\t\"file_name\": \"TestEicar.pdf\",\r\n\t\t\"file_type\": \"pdf\",\r\n\t\t\"features\": [\"te\"],\r\n\t\t\"te\": {\r\n\t\t\t\"reports\": [\"pdf\", \"xml\"],\r\n\t\t\t\"images\": [{\r\n\t\t\t\t\"id\": \"7e6fe36e-889e-4c25-8704-56378f0830df\",\r\n\t\t\t\t\"revision\": 1\r\n\t\t\t}, {\r\n\t\t\t\t\"id\": \"e50e99f3-5963-4573-af9e-e3f4750b55e2\",\r\n\t\t\t\t\"revision\": 1\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n}";&lt;/P&gt;&lt;P&gt;Console.WriteLine(json);&lt;BR /&gt; ServicePointManager.ServerCertificateValidationCallback = ((sender, certificate, chain, sslPolicyErrors) =&amp;gt; true);&lt;BR /&gt; ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;&lt;/P&gt;&lt;P&gt;var path = @"C:\Users\066570516\Desktop\TempEicar.pdf";&lt;BR /&gt;&lt;SPAN&gt; var url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://172.45.1.122:18194/tecloud/api/v1/file/upload" rel="nofollow"&gt;https://172.45.1.122:18194/tecloud/api/v1/file/upload&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt; HttpClient httpClient = new HttpClient();&lt;BR /&gt; httpClient.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", "MyAPIKEY");&lt;/P&gt;&lt;P&gt;//add json byte array to mulipart&lt;BR /&gt; MultipartFormDataContent form = new MultipartFormDataContent("----WebKitFormBoundary7MA4YWxkTrZu0gW");&lt;BR /&gt; byte[] jsonByte = Encoding.ASCII.GetBytes(json);&lt;BR /&gt; var jsonContent = new ByteArrayContent(jsonByte);&lt;/P&gt;&lt;P&gt;jsonContent.Headers.Add("Content-Disposition", "form-data; name=\"request\"");&lt;BR /&gt; jsonContent.Headers.Add("Content-Type", "application/json");&lt;BR /&gt; form.Add(jsonContent);&lt;/P&gt;&lt;P&gt;//add file stream to multipart&lt;BR /&gt; FileStream fs = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);&lt;BR /&gt; var streamContent = new StreamContent(fs);&lt;BR /&gt; streamContent.Headers.Add("Content-Disposition", "form-data; name=\"file\"; filename=\"" + Path.GetFileName(path) + "\"");&lt;BR /&gt; streamContent.Headers.Add("Content-Type", "application/pdf");&lt;BR /&gt; form.Add(streamContent);&lt;/P&gt;&lt;P&gt;HttpResponseMessage response = await httpClient.PostAsync(url, form);&lt;BR /&gt; response.EnsureSuccessStatusCode();&lt;BR /&gt; httpClient.Dispose();&lt;BR /&gt; Console.WriteLine(response.Content.ReadAsStringAsync().Result);&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 12:31:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24800#M13714</guid>
      <dc:creator>Ploni_Almoni</dc:creator>
      <dc:date>2018-09-17T12:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24801#M13715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ploni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way that you can extract/show the pure JSON request that is generated by your code ?&lt;/P&gt;&lt;P&gt;I am not too good in reading C# code &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 13:41:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24801#M13715</guid>
      <dc:creator>Thomas_Werner</dc:creator>
      <dc:date>2018-09-17T13:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24802#M13716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.checkpoint.com/legacyfs/online/checkpoint/70733_‏‏jjssoonn.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is the text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "request": {&lt;BR /&gt; "md5": "44D88612FEA8A8F36DE82E1278ABB02F",&lt;BR /&gt; "file_name": "TestEicar.pdf",&lt;BR /&gt; "file_type": "pdf",&lt;BR /&gt; "features": ["te"],&lt;BR /&gt; "te": {&lt;BR /&gt; "reports": ["pdf", "xml"],&lt;BR /&gt; "images": [{&lt;BR /&gt; "id": "7e6fe36e-889e-4c25-8704-56378f0830df",&lt;BR /&gt; "revision": 1&lt;BR /&gt; }, {&lt;BR /&gt; "id": "e50e99f3-5963-4573-af9e-e3f4750b55e2",&lt;BR /&gt; "revision": 1&lt;BR /&gt; }]&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 13:20:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24802#M13716</guid>
      <dc:creator>Nehorai_Elbaz</dc:creator>
      <dc:date>2018-09-18T13:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24803#M13717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For testing can you strip down your request to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"request": {&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;features": ["te"],&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"te": {&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"reports": ["pdf", "xml"],&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"images": [{&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"id": "7e6fe36e-889e-4c25-8704-56378f0830df",&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"revision": 1&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;}, {&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"id": "e50e99f3-5963-4573-af9e-e3f4750b55e2",&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"revision": 1&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;}]&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Regards Thomas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 13:47:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24803#M13717</guid>
      <dc:creator>Thomas_Werner</dc:creator>
      <dc:date>2018-09-18T13:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24804#M13718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am still getting "BAD REQUEST" as reponse&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2018 13:42:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24804#M13718</guid>
      <dc:creator>Nehorai_Elbaz</dc:creator>
      <dc:date>2018-10-06T13:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24805#M13719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nehorai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to see if the appliance API itself has a problem could you please try to send the API request and file through Postman tool ?&amp;nbsp;&lt;A class="link-titled" href="https://www.getpostman.com/" title="https://www.getpostman.com/"&gt;Postman | API Development Environment&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume your problem is how the file is uploaded by your code ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2018 07:48:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/24805#M13719</guid>
      <dc:creator>Thomas_Werner</dc:creator>
      <dc:date>2018-10-12T07:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/48434#M13720</link>
      <description>&lt;P&gt;Hi Iron,&lt;/P&gt;
&lt;P&gt;Have you found the solution ? I am facing the same issue like you. hope you share knowledge if you found it.&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Soo&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 03:32:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/48434#M13720</guid>
      <dc:creator>Kwangsoo__Soo__</dc:creator>
      <dc:date>2019-03-25T03:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/76162#M13721</link>
      <description>&lt;P&gt;Yes I succeded, I will add my github repo/ or a code snippet soon&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 20:06:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/76162#M13721</guid>
      <dc:creator>Nehorai_Elbaz</dc:creator>
      <dc:date>2020-03-29T20:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/80127#M13722</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Could You update us with repo link or explain how to resolve BAD REQUEST error to local Appliance?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 19:37:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/80127#M13722</guid>
      <dc:creator>Nazarii_Makohin</dc:creator>
      <dc:date>2020-03-29T19:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file works on cloud but not local gateway</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/80129#M13723</link>
      <description>&lt;P&gt;Hi, I succeeded to upload to a local server using the RestSharp, (With HttpClient I succeeded to upload to the cloud but not to a local server, can't tell why)&lt;/P&gt;&lt;P&gt;Add reference to &lt;A title="RestSharp" href="http://restsharp.org/" target="_self"&gt;RestSharp&lt;/A&gt;&amp;nbsp; dll and try this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;async Task UploadAsync()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ServicePointManager.ServerCertificateValidationCallback = ((sender, certificate, chain, sslPolicyErrors) =&amp;gt; true);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; var client = new RestClient("&lt;A href="https://xxx.xxx.xxx.xxx:1234/tecloud/api/v1/file/upload" target="_blank" rel="noopener"&gt;https://xxx.xxx.xxx.xxx:1234/tecloud/api/v1/file/upload&lt;/A&gt;");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; var request = new RestRequest(Method.POST);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; string path = @"C:\Users\nehorai_elbaz\test.png";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; string json = "{\"request\":"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; + "{"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; + $"\"file_name\": \"{Path.GetFileName(path)}\","&lt;BR /&gt;&amp;nbsp; &amp;nbsp; + $"\"file_type\": \"{Path.GetExtension(path)}\","&lt;BR /&gt;&amp;nbsp; &amp;nbsp; + "\"features\": [\"te\"],"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; + "\"te\": {\"reports\": [\"tar\"]}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; + "}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; + "}";&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; request.AddParameter("request", json);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; request.AddFileBytes("file",File.ReadAllBytes(path), "test.png");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; IRestResponse response = await client.ExecuteTaskAsync(request);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Console.WriteLine(response.Content);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if it works&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 04:32:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Uploading-file-works-on-cloud-but-not-local-gateway/m-p/80129#M13723</guid>
      <dc:creator>Nehorai_Elbaz</dc:creator>
      <dc:date>2020-03-30T04:32:18Z</dc:date>
    </item>
  </channel>
</rss>

