<p>That usually means "something fatal happened" when trying to upload the file.  The usual culprits are the php.ini <code>max_execution_time</code> and <code>memory_limit</code> settings, but if it's happening for small files too, something else could be going on.</p>

<p>Have also seen it happen when you're uploading an image in a format your underlying image processing library doesn't support.  i.e. your server has <a href="https://secure.php.net/manual/en/book.image.php" rel="nofollow noreferrer">GD</a> installed, but you're trying to upload a 32-bit PNG.  Or you're running an older version of GD or <a href="https://secure.php.net/manual/en/book.imagick.php" rel="nofollow noreferrer">Imagick</a> that has a bug you're hitting.</p>

<p>Check if you have a <code>craft/storage/runtime/logs/phperrors.log</code> file.  Any PHP fatal errors will be logged there.  If not, then check the Apache error logs to see if it's an Apache problem.</p>

CC BY-SA 3.0
2014-12-17T16:34:25.457Z
2016-11-08T19:43:59.503Z
2016-11-08T19:43:59.503Z
Brad Bell
<p>In my local MAMP site I'm not able to upload any files. </p>

<p><strong>Gives me this error in Chrome:</strong> </p>

<p><a href="http://nobel.craft.dev:8888/index.php?p=admin/actions/assets/uploadFile" rel="nofollow">http://nobel.craft.dev:8888/index.php?p=admin/actions/assets/uploadFile</a> net::ERR_EMPTY_RESPONSE </p>

<p><strong>This error in Safari</strong></p>

<p>"Failed to load a resource: The network connection was lost."</p>

<p><strong>Things I did</strong></p>

<ul>
<li>I've checked the asset folder path</li>
<li>makes sure folder is writable</li>
<li>nothing strange in the craft.log</li>
<li>delete cache in admin</li>
<li>download new version of craft and replaced the app folder</li>
</ul>

CC BY-SA 3.0
2014-12-17T14:14:49.137Z
Have you tried another browser (I'm assuming you're using chrome and the first page of google results for ERR_EMPTY_RESPONSE are all chrome issues)?
Steven Vandemoortele
CC BY-SA 3.0
2014-12-17T14:56:09.333Z
Yes. Tried Safari.

[Error] "Failed to load a resource: The network connection was lost." (index.php, line 0)
Johannes Lamers
<assets><error-message><upload>
Error with uploading Asset Files: net::ERR_EMPTY_RESPONSE
# Error with uploading Asset Files: net::ERR_EMPTY_RESPONSE

(Asked by: username_0 on 2014-12-17)

In my local MAMP site I'm not able to upload any files.

**Gives me this error in Chrome:**

<http://nobel.craft.dev:8888/index.php?p=admin/actions/assets/uploadFile> net::ERR\_EMPTY\_RESPONSE

**This error in Safari**

"Failed to load a resource: The network connection was lost."

**Things I did**

* I've checked the asset folder path
* makes sure folder is writable
* nothing strange in the craft.log
* delete cache in admin
* download new version of craft and replaced the app folder

**Tags:** assets, error-message, upload
> **Comments:**
> **username_1**: Have you tried another browser (I'm assuming you're using chrome and the first page of google results for ERR_EMPTY_RESPONSE are all chrome issues)?  
> **username_0**: Yes. Tried Safari.  [Error] "Failed to load a resource: The network connection was lost." (index.php, line 0)  

---

## 1 answers

### Answer by username_2 on 2014-12-17. Score: 2

That usually means "something fatal happened" when trying to upload the file. The usual culprits are the php.ini `max_execution_time` and `memory_limit` settings, but if it's happening for small files too, something else could be going on.

Have also seen it happen when you're uploading an image in a format your underlying image processing library doesn't support. i.e. your server has [GD](https://secure.php.net/manual/en/book.image.php) installed, but you're trying to upload a 32-bit PNG. Or you're running an older version of GD or [Imagick](https://secure.php.net/manual/en/book.imagick.php) that has a bug you're hitting.

Check if you have a `craft/storage/runtime/logs/phperrors.log` file. Any PHP fatal errors will be logged there. If not, then check the Apache error logs to see if it's an Apache problem.


---

