Answers.Body: <p>I'd check the permissions and make sure that Craft has write permissions to the craft/storage folder first.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-13T22:03:37.580Z
Answers.Text: I am running craft on my Windows local machine using WAMP .. what permissions do I need to check? Craft is writing cache files in the storage and saving the image in the temp folder shown
Answers.UserDisplayName: Maria Stellini
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-14T02:56:26.217Z
Answers.Text: Curious... what the original file name for the image?
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-15T13:17:09.570Z
Answers.Text: it was flat.png .. but it must have been something strange because it did not happen again and I did not change anything in my server config
Answers.UserDisplayName: Maria Stellini
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-13T21:24:17.443Z
Answers.LastActivityDate: 2014-08-13T21:24:17.443Z
Answers.UserDisplayName: Brad Bell
Body: <p>When I try to upload an image, I am getting the following error:</p>
  
  <p>imagepng(C:/wamp/craft/storage/runtime/temp/assets53ebcb012cffa3.92019251-temp.png): failed to open stream: Invalid argument (C:\wamp\craft\app\vendor\imagine\imagine\lib\Imagine\Gd\Image.php:691)</p>
  
  <p>Do you know what is going wrong?</p>
  
Tags: <assets>
Title: Upload asset failed to open stream: Invalid argument
ThreadText: # Upload asset failed to open stream: Invalid argument
  
  (Asked by: username_0 on 2014-08-13)
  
  When I try to upload an image, I am getting the following error:
  
  imagepng(C:/wamp/craft/storage/runtime/temp/assets53ebcb012cffa3.92019251-temp.png): failed to open stream: Invalid argument (C:\wamp\craft\app\vendor\imagine\imagine\lib\Imagine\Gd\Image.php:691)
  
  Do you know what is going wrong?
  
  **Tags:** assets
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-08-13. Score: 1
  
  I'd check the permissions and make sure that Craft has write permissions to the craft/storage folder first.
  
  > **Comments:**
  > **username_0**: I am running craft on my Windows local machine using WAMP .. what permissions do I need to check? Craft is writing cache files in the storage and saving the image in the temp folder shown  
  > **username_1**: Curious... what the original file name for the image?  
  > **username_0**: it was flat.png .. but it must have been something strange because it did not happen again and I did not change anything in my server config  
  
  ---
  
  