<p>the <code>general.php</code> file was setup for a multi environment but was missing </p>

<pre><code>'*' =&gt; array(
),
</code></pre>

<p>as per the notice here:
<a href="https://craftcms.com/docs/multi-environment-configs" rel="nofollow">https://craftcms.com/docs/multi-environment-configs</a></p>

<p><code>{basePath}assets/images/</code> was the correct file system path once the array had been added.</p>

CC BY-SA 3.0
2016-06-20T22:26:27.263Z
2016-06-21T10:20:44.913Z
2016-06-21T10:20:44.913Z
lucaslink
<p>After setting an asset resource I am receiving the "your source ' ' appears to be invalid." on the update indexes, and </p>

<pre><code>Error uploading the file: The file system path '{basePath}/assets/images/' set for this source does not exist.` on the assets upload page.
</code></pre>

<p>My file structure is:</p>

<pre><code>/var/www/
        craft/
        html/
            index.php
            assets/
                images/
</code></pre>

<p>I've tried all variations I can think of, ie: </p>

<pre><code>{basePath}assets/images/
/assets/images/
/var/www/html/assets/images
</code></pre>

<p>I've ensured that the basepath is set correctly in <code>general.php</code> and i've ensured that ownership of the folders is set correctly.</p>

<p>Craft is installed on a digital ocean lamp droplet running 14.04. general.php looks like:</p>

<pre><code>return array(

  // Use IP address of your droplet below
  'ip.address.of.droplet' =&gt; array(
    'siteUrl' =&gt; 'http://ip.address.of.droplet/',
    'environmentVariables' =&gt; array(
      'basePath' =&gt; '/var/www/html/',
      'baseUrl'  =&gt; 'http://ip.address.of.droplet/',
    )
  )
);
</code></pre>

<assets><error-message><error>
Invalid asset source path
# Invalid asset source path

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

After setting an asset resource I am receiving the "your source ' ' appears to be invalid." on the update indexes, and 
Error uploading the file: The file system path '{basePath}/assets/images/' set for this source does not exist.` on the assets upload page.

My file structure is:
/var/www/
        craft/
        html/
            index.php
            assets/
                images/

I've tried all variations I can think of, ie: 
{basePath}assets/images/
/assets/images/
/var/www/html/assets/images

I've ensured that the basepath is set correctly in general.php and i've ensured that ownership of the folders is set correctly.
Craft is installed on a digital ocean lamp droplet running 14.04. general.php looks like:
return array(

  // Use IP address of your droplet below
  'ip.address.of.droplet' => array(
    'siteUrl' => 'http://ip.address.of.droplet/',
    'environmentVariables' => array(
      'basePath' => '/var/www/html/',
      'baseUrl'  => 'http://ip.address.of.droplet/',
    )
  )
);

**Tags:** assets, error-message, error

---

## 1 answers

### Answer by username_0 on 2016-06-20. Score: 3

the general.php file was setup for a multi environment but was missing 
'*' => array(
),

as per the notice here:
https://craftcms.com/docs/multi-environment-configs
{basePath}assets/images/ was the correct file system path once the array had been added.


---

