update_with_media issue


#1

Hi,
i’m changing php code to be compatible with new API and i’m stuck with update_with_media.
This is my code:

$image = constant('PATH_UPLOAD').$db_data['post_image'];
$connection = new TwitterOAuth(constant('CONSUMER_KEY'), constant('CONSUMER_SECRET'), $db_data['tw_oauth_token'], $db_data['tw_oauth_secret']);			
$content = $connection->OAuthRequest('https://api.twitter.com/1.1/account/verify_credentials.json', 'GET', array());
$twitterInfo = json_decode($content);						
$resp_tw = $connection->OAuthRequest('https://api.twitter.com/1.1/statuses/update_with_media.json', 'POST', 
			  array(
				'status'   => html_entity_decode($db_data['post_text'],ENT_QUOTES,'UTF-8'),			  
  				'media[]'  => "@{$image}"
			  )	        
	        );							

And it returns
{“errors”:[{“code”:189,“message”:“Error creating status”}]}

What might be the problem / what i’m doing wrong?