<p>That error message means your <code>basePath</code> is incorrect and Craft can't find the directory you're referring to.</p>

<p>From your settings, it looks like Craft would try to upload images to <code>/public_html/src/assets/images/</code>. If that's correct, try using <code>/</code> or nothing instead of your current <code>basePath</code>. And make sure the folder exists on the server.</p>

CC BY-SA 3.0
2017-09-20T22:59:01.697Z
thanks, and i have tried this in my general.php but didnt work, but i can see my base url is right like, for english website -- https://www.ancamotion.com/src/assets/images/(imagename), for my german website https://www.ancamotion.de/src/assets/images/(imagename), but here image is not appear is because basepath is wrong and didnt upload the image in --> public_de/src/assets/images/. same thing happen with other two domains as well only english is working fine, any more thought? thank you in advance. addy
addy
CC BY-SA 3.0
2017-09-20T07:28:51.617Z
2017-09-20T07:28:51.617Z
darylknight
<p>When i have upload the image using below settings that will give me an error  The error message was: <strong>"Error uploading the file: The file system path "/public_html/src/assets/images/" set for this source does not exist.</strong> </p>

<p>general.php file</p>

<pre><code>&lt;?php

 $siteUrl = array(
    'en_gb' =&gt; 'https://www.ancamotion.com/',
    'de' =&gt; 'https://www.ancamotion.de/',
    'zh_cn' =&gt; 'https://www.ancamotion.cn/',
    'zh_tw' =&gt; 'https://www.ancamotion.com.tw/',
);

return array(

    '*' =&gt; array(
        'devMode' =&gt; false,
        'extraAllowedFileExtensions' =&gt; 'exe, xml',
        'maxUploadFileSize' =&gt; 67108864,
        'omitScriptNameInUrls' =&gt; true,
        'timezone' =&gt; 'Australia/Melbourne',
        'setPasswordPath' =&gt; array(
            'en' =&gt; 'securezone/resetpasswordform.html',
                 'de' =&gt; 'securezone/resetpasswordform.html',
                  'cn' =&gt; 'securezone/resetpasswordform.html',
        ),
        'setPasswordSuccessPath' =&gt; array(
            'en' =&gt; 'password/thanks-reset.html',
                'de' =&gt; 'password/thanks-reset.html',
                'cn' =&gt; 'password/thanks-reset.html',
        ),
    ),

   'ancamotion.com' =&gt; array(
        'siteUrl' =&gt; $siteUrl,
        'environmentVariables' =&gt; array(
            'basePath' =&gt; '/public_html/',
            'baseUrl'  =&gt; 'https://www.ancamotion.com/',
        ),
    ),
   'ancamotion.de' =&gt; array(
        'siteUrl' =&gt; $siteUrl,
        'environmentVariables' =&gt; array(
            'basePath' =&gt; '/public_de/',
            'baseUrl'  =&gt; 'https://www.ancamotion.de/',
        ),
    ),
   'ancamotion.cn' =&gt; array(
        'siteUrl' =&gt; $siteUrl,
        'environmentVariables' =&gt; array(
            'basePath' =&gt; '/public_cn/',
            'baseUrl'  =&gt; 'https://www.ancamotion.cn/',
        ),
    ),
   'ancamotion.com.tw' =&gt; array(
        'siteUrl' =&gt; $siteUrl,
        'environmentVariables' =&gt; array(
            'basePath' =&gt; '/public_tw/',
            'baseUrl'  =&gt; 'https://www.ancamotion.com.tw/',
        ),
    ),

);
</code></pre>

<p>my settings from website admin Assets are</p>

<p>File System Path --> {basePath}src/assets/images/</p>

<p>URL --> {baseUrl}src/assets/images/</p>

<p>Can anyone help me with this?</p>

<p>Thank You in advanced.</p>

<assets>
Having an issue with assets, while i am upload the image from the admin
# Having an issue with assets, while i am upload the image from the admin

(Asked by: username_0 on 2017-09-20)

When i have upload the image using below settings that will give me an error  The error message was: "Error uploading the file: The file system path "/public_html/src/assets/images/" set for this source does not exist. 
general.php file
 'https://www.ancamotion.com/',
    'de' => 'https://www.ancamotion.de/',
    'zh_cn' => 'https://www.ancamotion.cn/',
    'zh_tw' => 'https://www.ancamotion.com.tw/',
);

return array(

    '*' => array(
        'devMode' => false,
        'extraAllowedFileExtensions' => 'exe, xml',
        'maxUploadFileSize' => 67108864,
        'omitScriptNameInUrls' => true,
        'timezone' => 'Australia/Melbourne',
        'setPasswordPath' => array(
            'en' => 'securezone/resetpasswordform.html',
                 'de' => 'securezone/resetpasswordform.html',
                  'cn' => 'securezone/resetpasswordform.html',
        ),
        'setPasswordSuccessPath' => array(
            'en' => 'password/thanks-reset.html',
                'de' => 'password/thanks-reset.html',
                'cn' => 'password/thanks-reset.html',
        ),
    ),

   'ancamotion.com' => array(
        'siteUrl' => $siteUrl,
        'environmentVariables' => array(
            'basePath' => '/public_html/',
            'baseUrl'  => 'https://www.ancamotion.com/',
        ),
    ),
   'ancamotion.de' => array(
        'siteUrl' => $siteUrl,
        'environmentVariables' => array(
            'basePath' => '/public_de/',
            'baseUrl'  => 'https://www.ancamotion.de/',
        ),
    ),
   'ancamotion.cn' => array(
        'siteUrl' => $siteUrl,
        'environmentVariables' => array(
            'basePath' => '/public_cn/',
            'baseUrl'  => 'https://www.ancamotion.cn/',
        ),
    ),
   'ancamotion.com.tw' => array(
        'siteUrl' => $siteUrl,
        'environmentVariables' => array(
            'basePath' => '/public_tw/',
            'baseUrl'  => 'https://www.ancamotion.com.tw/',
        ),
    ),

);

my settings from website admin Assets are
File System Path --> {basePath}src/assets/images/
URL --> {baseUrl}src/assets/images/
Can anyone help me with this?
Thank You in advanced.

**Tags:** assets

---

## 1 answers

### Answer by username_1 on 2017-09-20. Score: 2

That error message means your `basePath` is incorrect and Craft can't find the directory you're referring to.

From your settings, it looks like Craft would try to upload images to `/public_html/src/assets/images/`. If that's correct, try using `/` or nothing instead of your current `basePath`. And make sure the folder exists on the server.

> **Comments:**
> **username_0**: thanks, and i have tried this in my general.php but didnt work, but i can see my base url is right like, for english website -- https://www.ancamotion.com/src/assets/images/(imagename), for my german website https://www.ancamotion.de/src/assets/images/(imagename), but here image is not appear is because basepath is wrong and didnt upload the image in --> public_de/src/assets/images/. same thing happen with other two domains as well only english is working fine, any more thought? thank you in advance. addy  

---

