Answers.Body: <p>It was an issue with the /tmp folder filling up. Have to regularly make sure it's emptied. If the /tmp folder has proper permissions this should happen automatically.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-11T12:32:15.160Z
Answers.LastActivityDate: 2017-05-11T12:32:15.160Z
Answers.UserDisplayName: Joshua Tuscan
Body: <p>I've already adjusted the php.ini with max values for timeout and file size. This is really perplexing me. I'm on Dreamhost VPS. I've triple checked all file permissions. I consistently get this error: "Upload failed for brooklyn_bridge.jpg. The error message was: “Error uploading the file: Uploaded file was empty" no matter what I try. </p>
  
  <p>Here was a recent error after turning devmode on:</p>
  
  <pre><code>$_FILES=array (
    'assets-upload' =&gt; 
    array (
      'name' =&gt; 'brooklyn_bridge.jpg',
      'type' =&gt; '',
      'tmp_name' =&gt; '',
      'error' =&gt; 6,
      'size' =&gt; 0,
    ),
  )
  
  $_COOKIE=array (
    'b8d03c16c0ad94ea360e045e078389acusername' =&gt; 'fef6a177a0a30714376a5da4ec0d0f325256546as:60:"19b3e1b40c907258470bb0eada9aea0a67c491cdczo2OiJqb3NodWEiOw==";',
    'CraftSessionId' =&gt; 'XgGRKqGqqi1,Yosu0A37i0',
    'b8d03c16c0ad94ea360e045e078389ac' =&gt; 'dfb0e07d4a3e09dd9d62a5b04372e50bb9480660s:396:"315becd5240726fc3c5e92aca8e9c9b29fc61fdfYTo2OntpOjA7czo2OiJqb3NodWEiO2k6MTtzOjMyOiJIelM3UzhNWER0ODNlbEdmRUlTUXhORnFXOVFrRVUzbiI7aToyO3M6MzY6IjM4MmM2YzllLTY3NjItNGNiMy1iNjkzLTAxZjZmODQ2MTRmZiI7aTozO2k6MDtpOjQ7czoxMjE6Ik1vemlsbGEvNS4wIChNYWNpbnRvc2g7IEludGVsIE1hYyBPUyBYIDEwXzExXzUpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIENocm9tZS81MC4wLjI2NjEuMTAyIFNhZmFyaS81MzcuMzYiO2k6NTthOjA6e319";',
  )
  
  $_SESSION=array (
    'b8d03c16c0ad94ea360e045e078389ac__id' =&gt; '1',
    'b8d03c16c0ad94ea360e045e078389ac__name' =&gt; 'joshua',
    'b8d03c16c0ad94ea360e045e078389ac__states' =&gt; 
    array (
    ),
    'b8d03c16c0ad94ea360e045e078389ac__timeout' =&gt; 1465416905,
    'b8d03c16c0ad94ea360e045e078389ac__auth_access' =&gt; 
    array (
      0 =&gt; 'uploadToAssetSource:36',
    ),
    'assetsSourcesBeingIndexed' =&gt; 
    array (
      0 =&gt; '1',
    ),
    'assetsMissingFolders' =&gt; 
    array (
    ),
  )
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-08T19:19:32.490Z
Comments.Text: Here was a recent error after turning devmode on:
Comments.UserDisplayName: Joshua Tuscan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-08T20:25:40.950Z
Comments.Text: What's the devMode error?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-05-09T21:51:39.463Z
Comments.Text: @JoshuaTuscan, you have us in suspense. Did you ever work this out? And did you try a handful of different file types to confirm the same thing happens across the board?
Comments.UserDisplayName: Matt Stein
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-05-10T18:00:32.517Z
Comments.Text: It was an issue with the /tmp folder filling up. Have to regularly make sure it's emptied.
Comments.UserDisplayName: Joshua Tuscan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-05-10T18:30:07.560Z
Comments.Text: Weird. Would you mind posting that as an answer and accepting it, @JoshuaTuscan? It's good for posterity and scoring yourself a few more points. :)
Comments.UserDisplayName: Matt Stein
Tags: <assets><error-message><php>
Title: File empty on all asset uploads
ThreadText: # File empty on all asset uploads
  
  (Asked by: username_0 on 2016-06-08)
  
  I've already adjusted the php.ini with max values for timeout and file size. This is really perplexing me. I'm on Dreamhost VPS. I've triple checked all file permissions. I consistently get this error: "Upload failed for brooklyn\_bridge.jpg. The error message was: “Error uploading the file: Uploaded file was empty" no matter what I try.
  
  Here was a recent error after turning devmode on:
  
  ```
  $_FILES=array (
    'assets-upload' => 
    array (
      'name' => 'brooklyn_bridge.jpg',
      'type' => '',
      'tmp_name' => '',
      'error' => 6,
      'size' => 0,
    ),
  )
  
  $_COOKIE=array (
    'b8d03c16c0ad94ea360e045e078389acusername' => 'fef6a177a0a30714376a5da4ec0d0f325256546as:60:"19b3e1b40c907258470bb0eada9aea0a67c491cdczo2OiJqb3NodWEiOw==";',
    'CraftSessionId' => 'XgGRKqGqqi1,Yosu0A37i0',
    'b8d03c16c0ad94ea360e045e078389ac' => 'dfb0e07d4a3e09dd9d62a5b04372e50bb9480660s:396:"315becd5240726fc3c5e92aca8e9c9b29fc61fdfYTo2OntpOjA7czo2OiJqb3NodWEiO2k6MTtzOjMyOiJIelM3UzhNWER0ODNlbEdmRUlTUXhORnFXOVFrRVUzbiI7aToyO3M6MzY6IjM4MmM2YzllLTY3NjItNGNiMy1iNjkzLTAxZjZmODQ2MTRmZiI7aTozO2k6MDtpOjQ7czoxMjE6Ik1vemlsbGEvNS4wIChNYWNpbnRvc2g7IEludGVsIE1hYyBPUyBYIDEwXzExXzUpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIENocm9tZS81MC4wLjI2NjEuMTAyIFNhZmFyaS81MzcuMzYiO2k6NTthOjA6e319";',
  )
  
  $_SESSION=array (
    'b8d03c16c0ad94ea360e045e078389ac__id' => '1',
    'b8d03c16c0ad94ea360e045e078389ac__name' => 'username_0',
    'b8d03c16c0ad94ea360e045e078389ac__states' => 
    array (
    ),
    'b8d03c16c0ad94ea360e045e078389ac__timeout' => 1465416905,
    'b8d03c16c0ad94ea360e045e078389ac__auth_access' => 
    array (
      0 => 'uploadToAssetSource:36',
    ),
    'assetsSourcesBeingIndexed' => 
    array (
      0 => '1',
    ),
    'assetsMissingFolders' => 
    array (
    ),
  )
  
  ```
  
  **Tags:** assets, error-message, php
  
  > **Comments:**
  > **username_0**: Here was a recent error after turning devmode on:  
  > **username_1**: What's the devMode error?  
  > **username_2**: @username_0, you have us in suspense. Did you ever work this out? And did you try a handful of different file types to confirm the same thing happens across the board?  
  > **username_0**: It was an issue with the /tmp folder filling up. Have to regularly make sure it's emptied.  
  > **username_2**: Weird. Would you mind posting that as an answer and accepting it, @username_0? It's good for posterity and scoring yourself a few more points. :)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-05-11. Score: 1
  
  It was an issue with the /tmp folder filling up. Have to regularly make sure it's emptied. If the /tmp folder has proper permissions this should happen automatically.
  
  
  ---
  
  