<p>I suspect your public root is something else/more than just <code>/public_html</code>. Try adding the following to your <code>index.php</code> file, and refresh your site:</p>

<pre><code>die($_SERVER['DOCUMENT_ROOT']);
</code></pre>

<p>Your real public root path should now display in your browser.</p>

CC BY-SA 3.0
2016-06-07T09:18:53.930Z
2016-06-07T09:18:53.930Z
Mats Mikkel Rummelhoff
<p>I have an issue with uploading files. I got an error message:</p>

<blockquote>
  <p>Upload failed for filename. Path directory structure
  "/public_html/assets/images /" set for this resource doesn't exist.</p>
</blockquote>

<p>The Path should be good, because the public_html folder is directly in the root and the /assets/images folder is in it, permissions are 777. </p>

<p>It worked well on my local, it stopped working when I moved the site live. All pictures uploaded on my local are displaying on the live site...I just can't upload new</p>

CC BY-SA 3.0
2016-06-07T08:55:37.633Z
Looks like there's an extra space in your path, after `images` – could that be it? If not, try to add `die($_SERVER['DOCUMENT_ROOT']);` to your `index.php` file, to see the real public root path for your app.
Mats Mikkel Rummelhoff
CC BY-SA 3.0
2016-06-07T09:04:35.613Z
Yup, the real public path was /home/html/ instead just /.

Thanks a lot!!
Michal Bulla
CC BY-SA 3.0
2016-06-07T09:17:10.030Z
Awesome. I'll add that as an answer, then :)
Mats Mikkel Rummelhoff
<upload>
Upload failed for filename. The path doesn't exist
# Upload failed for filename. The path doesn't exist

(Asked by: username_0 on 2016-06-07)

I have an issue with uploading files. I got an error message:

> Upload failed for filename. Path directory structure
> "/public\_html/assets/images /" set for this resource doesn't exist.

The Path should be good, because the public\_html folder is directly in the root and the /assets/images folder is in it, permissions are 777.

It worked well on my local, it stopped working when I moved the site live. All pictures uploaded on my local are displaying on the live site...I just can't upload new

**Tags:** upload
> **Comments:**
> **username_1**: Looks like there's an extra space in your path, after `images` – could that be it? If not, try to add `die($_SERVER['DOCUMENT_ROOT']);` to your `index.php` file, to see the real public root path for your app.  
> **username_0**: Yup, the real public path was /home/html/ instead just /.  Thanks a lot!!  
> **username_1**: Awesome. I'll add that as an answer, then :)  

---

## 1 answers

### Answer by username_1 on 2016-06-07. Score: 2

I suspect your public root is something else/more than just /public_html. Try adding the following to your index.php file, and refresh your site:
die($_SERVER['DOCUMENT_ROOT']);

Your real public root path should now display in your browser.


---

