Using str_replace in PHP code to address image references in database:
$imagePath = str_replace(‘$upload$’, ‘https://www.legeme.de/wp-content/uploads’, $row[‘image’]);