Replies: 0
Hi,
I changed default options in /wp-admin/options.php
upload_path to subdomain /srv/www/image.domain.com/htdocs/uploads
upload_url_path to subdomain http://image.domain.com/uploads
All my images upload to this path.
Then I try get_recent_posts but option posts.thumbnail return null because json-api/models/attachment.php function query_images() on line 44 and 47 return path to blog name.
To fix this I changed $filename to:
$dir = wp_get_upload_dir();
$filename = $dir[‘basedir’] . substr($url, strlen($dir[‘baseurl’]));