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?
1 Answer
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/',
),
);
craft/config
, and the one incraft/app/etc/config/defaults
. You should really never modify anything in thecraft/app
folder, so the obvious choice is to modify yourcraft/config/general.php
file.