<p>It turns out that the problem wasn't down to the asset paths.</p>

<p>After setting the original paths from my question, I was able to upload PNG files, but not JPEGs.</p>

<p>You need to <a href="https://stackoverflow.com/questions/13201071/how-to-install-image-magick-for-mamp-pro-on-mountain-lion-10-8-2">enable ImageMagick in php.ini on MAMP</a> for Craft to accept JPEG uploads.</p>

<p>See <a href="https://craftcms.stackexchange.com/questions/5415/all-images-uploading-except-jpg-files">this answer</a> for more information.</p>

CC BY-SA 3.0
2017-08-24T13:42:17.210Z
2017-08-24T13:56:19.037Z
2017-08-24T13:56:19.037Z
Sam
<p>Try access your asset by this URL:</p>

<pre><code>http://localhost:8888/img/uploads/
</code></pre>

CC BY-SA 3.0
2017-08-23T21:21:20.147Z
2017-08-23T21:21:20.147Z
Jefry Dewangga
<p>I'm running Craft with MAMP under this file system path:</p>

<pre><code>craft/
public_html/
    index.php
    img/uploads/
</code></pre>

<p>Via Settings > Assets, I have set the following paths:</p>

<p><a href="https://i.sstatic.net/GlEVH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GlEVH.png" alt="Craft CMS Assets Settings"></a></p>

<p>I've also tried this path under "URL":</p>

<pre><code>http://localhost:8888/project_name/craft/public_html/img/uploads/
</code></pre>

<p>When I go to upload an image, the loading bar is stuck at 100% and nothing uploads. What am I doing wrong here?</p>

<assets>
Assets on localhost
# Assets on localhost

(Asked by: username_0 on 2017-08-23)

I'm running Craft with MAMP under this file system path:
craft/
public_html/
    index.php
    img/uploads/

Via Settings > Assets, I have set the following paths:

I've also tried this path under "URL":
http://localhost:8888/project_name/craft/public_html/img/uploads/

When I go to upload an image, the loading bar is stuck at 100% and nothing uploads. What am I doing wrong here?

**Tags:** assets


---

## 2 answers

### Answer by username_0 on 2017-08-24. Score: 0 | Accepted answer

It turns out that the problem wasn't down to the asset paths.

After setting the original paths from my question, I was able to upload PNG files, but not JPEGs.

You need to [enable ImageMagick in php.ini on MAMP](https://stackoverflow.com/questions/13201071/how-to-install-image-magick-for-mamp-pro-on-mountain-lion-10-8-2) for Craft to accept JPEG uploads.

See [this answer](https://craftcms.stackexchange.com/questions/5415/all-images-uploading-except-jpg-files) for more information.


---

### Answer by username_1 on 2017-08-23. Score: 2

Try access your asset by this URL:
http://localhost:8888/img/uploads/


---

