core/components/model/gallery/galalbum.php line 202
$targetDir = str_ireplace(MODX_BASE_PATH, '', $this->getPath());
On some servers - like polish home.pl - MODX_BASE_PATH and site root is "/"
then this functions removes all '/' from path, resulting in uploading files to ie. /assetsgallery68