<p>Apparently, there's no environmentVariable <code>assetsBasePath</code> in your <code>config/general.php</code>. Without it, Craft can not replace the <code>{assetsBasePath}</code> part of the url by the correct path.</p>

<p>So, <code>config/general.php</code> should look something like this:</p>

<pre><code>return array(
    'devMode' =&gt; true,
    'siteUrl' =&gt; 'http://www.yourdomain.com/assets/',
    'environmentVariables' =&gt; array(
        'assetsUrl' =&gt; 'http://www.yourdomain.com/assets/',
        'assetsBasePath' =&gt; '/path/to/your/public/folder/assets/',
    ),
);
</code></pre>

CC BY-SA 3.0
2015-06-18T13:22:14.197Z
2015-06-18T13:22:14.197Z
Paul
<p>I'm trying to upload own assets, but it occurs always the error that the file path "{assetsBasePath}/sites/" doesn't exist. Why and how can I fix it?</p>

CC BY-SA 3.0
2015-06-18T13:17:32.280Z
Got it, the BasePath was set in the wrong general.php
meisterEder
CC BY-SA 3.0
2015-06-18T13:33:11.283Z
How many general.php files do you have ;)
Paul
CC BY-SA 3.0
2015-06-18T18:53:58.277Z
I know Paul is joking, but he's kinda right... There are only 2 "general.php" files... the one in `craft/config`, and the one in `craft/app/etc/config/defaults`. You should really **never** modify anything in the `craft/app` folder, so the obvious choice is to modify your `craft/config/general.php` file.
Lindsey D
<assets>
Assets Upload Error
# Assets Upload Error

(Asked by: username_0 on 2015-06-18)

I'm trying to upload own assets, but it occurs always the error that the file path "{assetsBasePath}/sites/" doesn't exist. Why and how can I fix it?

**Tags:** assets

> **Comments:**
> **username_0**: Got it, the BasePath was set in the wrong general.php  
> **username_1**: How many general.php files do you have ;)  
> **username_2**: I know username_1 is joking, but he's kinda right... There are only 2 "general.php" files... the one in `craft/config`, and the one in `craft/app/etc/config/defaults`. You should really **never** modify anything in the `craft/app` folder, so the obvious choice is to modify your `craft/config/general.php` file.  

---

## 1 answers

### Answer by username_1 on 2015-06-18. Score: 4

Apparently, there's no environmentVariable assetsBasePath in your config/general.php. Without it, Craft can not replace the {assetsBasePath} part of the url by the correct path.
So, config/general.php should look something like this:
return array(
    'devMode' => true,
    'siteUrl' => 'http://www.yourdomain.com/assets/',
    'environmentVariables' => array(
        'assetsUrl' => 'http://www.yourdomain.com/assets/',
        'assetsBasePath' => '/path/to/your/public/folder/assets/',
    ),
);


---

