<p>I'd check the permissions and make sure that Craft has write permissions to the craft/storage folder first.</p>

CC BY-SA 3.0
2014-08-13T22:03:37.580Z
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
Maria Stellini
CC BY-SA 3.0
2014-08-14T02:56:26.217Z
Curious... what the original file name for the image?
Brad Bell
CC BY-SA 3.0
2014-08-15T13:17:09.570Z
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
Maria Stellini
CC BY-SA 3.0
2014-08-13T21:24:17.443Z
2014-08-13T21:24:17.443Z
Brad Bell
<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>

<assets>
Upload asset failed to open stream: Invalid argument
# 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  

---

