title: How to upload files to local computer with MAMP?
body: <p>I'm trying to upload images to a local server using MAMP.</p>
  
  <p>I post the images using a http-request. that seems to work fine.</p>
  
  <p>This is how I process the files on the backend to reproduce the error:</p>
  
  <pre><code>foreach ($_FILES as $file) {
      //@todo kolla om några bilder är bifogade, kanske inte behövs.
      $filepath = $file['tmp_name'].'/'.$file['name'];
      echo $filepath . '&lt;br /&gt;';
  
      if(file_exists($filepath)){
          echo 'true &lt;br /&gt;';
      }else{
          echo 'false &lt;br /&gt;';
      }
  }
  </code></pre>
  
  <p>it outputs</p>
  
  <pre><code>/Applications/MAMP/tmp/php/phpdaILf2/pdf.pdf
  false 
  </code></pre>
  
  <p>Ie there is a path and upoad, but nothing in it.</p>
  
  <p>the path</p>
  
  <pre><code>/Applications/MAMP/tmp/php/
  </code></pre>
  
  <p>exists. I have set the permissions in the php folder, both in finder "Everyone" "read and write" and in the chmod 0777 in the terminal, both to tmp and php-folder. yet, no folder is created inside php and the file is no uploaded.</p>
  
  <p>What am I doing wrong?  </p>