Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-07T09:18:53.930Z
Answers.LastActivityDate: 2016-06-07T09:18:53.930Z
Answers.UserDisplayName: Mats Mikkel Rummelhoff
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-07T08:55:37.633Z
Comments.Text: 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.
Comments.UserDisplayName: Mats Mikkel Rummelhoff
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-07T09:04:35.613Z
Comments.Text: Yup, the real public path was /home/html/ instead just /.
  
  Thanks a lot!!
Comments.UserDisplayName: Michal Bulla
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-07T09:17:10.030Z
Comments.Text: Awesome. I'll add that as an answer, then :)
Comments.UserDisplayName: Mats Mikkel Rummelhoff
Tags: <upload>
Title: Upload failed for filename. The path doesn't exist
ThreadText: # 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.
  
  
  ---
  
  