title: wp_handle_upload issue Specified file failed upload test
body: <p>When using the wp_handle_upload function it is returning the following error </p>
  
  <pre><code> Array([error] =&gt; Specified file failed upload test.)
  </code></pre>
  
  <p>The code I am using is as follows  </p>
  
  <pre><code>function dc_form_image_upload() {
      if ( ! function_exists( 'wp_handle_upload' ) ) {
          require_once( ABSPATH . 'wp-admin/includes/file.php' );
      }
  
      $uploadedfile = $_POST['file'];
      //print_r($uploadedfile);
      // die();
  
      $upload_overrides = array( 'test_form' =&gt; false );
  
      $movefile = wp_handle_upload( $uploadedfile, $upload_overrides ); 
  
      if ( $movefile &amp;&amp; !isset( $movefile['error'] ) ) {
          echo "File is valid, and was successfully uploaded.\n";
          var_dump( $movefile);
      } else {
          /**
           * Error generated by _wp_handle_upload()
           * @see _wp_handle_upload() in wp-admin/includes/file.php
           */
          print_r($movefile);
      }
  }
  </code></pre>
  
  <p>Standard admin media upload is working fine but this seems to be causing issues.</p>
  
  <p>Can anyone give me some advice on this, have updated ini files and so on with no improvement.</p>
  
  <p>Thanks.</p>