title: Losing $_POST data after a submitted multipart/form-data form reload(Firefox)
body: <p>Losing <code>$_POST</code> data after a submitted multipart/form-data form reload.</p>
  
  <p>I have the below form:</p>
  
  <pre><code>&lt;?php var_dump($_POST, $_FILES); ?&gt;
  
  &lt;form method="POST" enctype="multipart/form-data"&gt;
      &lt;input type="text" name="name1" value="name1"/&gt;
      &lt;input type="text" name="name2" value="name2"/&gt;
      &lt;input type="file" name="file" value=""/&gt;
      &lt;input type="text" name="name3" value="name3"/&gt;
      &lt;input type="text" name="name4" value="name4"/&gt;
      &lt;button type="submit"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The issue is that when i submit this form with a file selected (maybe 2b - 3kb) for the first time i get</p>
  
  <pre><code>'name1' =&gt; string 'name1' (length=5)
  'name2' =&gt; string 'name2' (length=5)
  'name3' =&gt; string 'name3' (length=5)
  'name4' =&gt; string 'name4' (length=5)
  
  'file' =&gt; array (size=5) [...]
  </code></pre>
  
  <p>But then when I hit the reload button I get this:</p>
  
  <pre><code>array (size=2)
  'name1' =&gt; string 'name1' (length=5)
  'name2' =&gt; string 'name2' (length=5)
  
  'file' =&gt; array (size=5) [...]
  </code></pre>
  
  <p>More like all the data that came after <code>file</code> is lost.<br>
  I tried not selecting any file, submitted the form and reloaded it and didnt lose any data from the <code>$_POST</code>.<br>
  And also when i move <code>name3</code> and <code>name4</code> above <code>file</code> their data remains after reload.
  I need help.  </p>
  
  <p>Made demo here: <a href="https://vimeo.com/272339637" rel="nofollow noreferrer">https://vimeo.com/272339637</a></p>