<p dir="auto">Currently, we are able to upload individual file using <code class="notranslate">setInputFiles</code>method . Similarly, we are looking for a method to upload a folder like <code class="notranslate">setInputFolder</code>. This will be useful for many projects.<br>
Please let me know if further information is required.</p>
<p dir="auto">The following test fails in Chromium:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="  const response = await page.goto(server.EMPTY_PAGE);
  expect(response.ok()).toBe(true);
  expect(response.request().headers()['referer']).toBe(server.EMPTY_PAGE);"><pre class="notranslate">  <span class="pl-k">const</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-c1">EMPTY_PAGE</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-en">ok</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">headers</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">[</span><span class="pl-s">'referer'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-c1">EMPTY_PAGE</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The headers look like this:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[
  {
    &quot;name&quot;: &quot;Upgrade-Insecure-Requests&quot;,
    &quot;value&quot;: &quot;1&quot;
  },
  {
    &quot;name&quot;: &quot;User-Agent&quot;,
    &quot;value&quot;: &quot;Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/96.0.4645.0 Safari/537.36&quot;
  },
  {
    &quot;name&quot;: &quot;referer&quot;,
    &quot;value&quot;: &quot;http://localhost:8907/empty.html&quot;
  },
  {
    &quot;name&quot;: &quot;Referer&quot;,
    &quot;value&quot;: &quot;http://localhost:8907/empty.html&quot;
  }
]"><pre class="notranslate">[
  {
    <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Upgrade-Insecure-Requests<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"value"</span>: <span class="pl-s"><span class="pl-pds">"</span>1<span class="pl-pds">"</span></span>
  },
  {
    <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>User-Agent<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"value"</span>: <span class="pl-s"><span class="pl-pds">"</span>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/96.0.4645.0 Safari/537.36<span class="pl-pds">"</span></span>
  },
  {
    <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>referer<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"value"</span>: <span class="pl-s"><span class="pl-pds">"</span>http://localhost:8907/empty.html<span class="pl-pds">"</span></span>
  },
  {
    <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Referer<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"value"</span>: <span class="pl-s"><span class="pl-pds">"</span>http://localhost:8907/empty.html<span class="pl-pds">"</span></span>
  }
]</pre></div>