title: File upload error - unable to create a temporary file in Unknown on line 0
body: <p>I keep getting this error everytime i try to upload an image using laravel and am sure its a permissions problem but i don't know how to go about it
  upload code</p>
  
  <pre><code>$destinationPath ='uploads';
      $extension = Input::file('photo')-&gt;getClientOriginalExtension();//getting image extension
      $photoName = (rand() * time()).'.'.$extension;//renaming image
      Input::file('photo')-&gt;move($destinationPath, $photoName);//uploading file to serve
  </code></pre>
  
  <p>error</p>
  
  <pre><code>unable to create a temporary file in Unknown on line 0
  </code></pre>
  
  <p>in my app the /storage directory has these permissions</p>
  
  <pre><code>drwxrwxrwx  5 www-data www-data    4096 Oct 25 10:04 storage
  </code></pre>
  
  <p>and the tmp directory has these permissions</p>
  
  <pre><code>drwxrwxrwx   3 root root  4096 Jul 13 13:48 tmp
  </code></pre>
  
  <p>Any suggestions on how i could solve this ?</p>