HI am trying media upload but am getting an error message "File path does not exist: http:/amt.in/img/gallery/1.jpg
"
am sure about file is exists.
I have tried this
twitterRestClient.statusesUpdateWithMedia(
{
'status': 'Posting a tweet w/ attached media.',
'media[]': 'http://amt.in/img/gallery/1.jpg'
},
function(error, result)
{
if (error)
{
console.log('Error: ' + (error.code ? error.code + ' ' + error.message : error.message));
return next(err);
}
if (result)
{
console.log('result with media', result);
res.json({
status: 200,
info: "OK",
id: result.id
});
}
});
Can you please guide me in right direction. Thank you.
HI am trying media upload but am getting an error message "File path does not exist: http:/amt.in/img/gallery/1.jpg
"
am sure about file is exists.
I have tried this
twitterRestClient.statusesUpdateWithMedia(
{
'status': 'Posting a tweet w/ attached media.',
'media[]': 'http://amt.in/img/gallery/1.jpg'
},
function(error, result)
{
if (error)
{
console.log('Error: ' + (error.code ? error.code + ' ' + error.message : error.message));
return next(err);
}
Can you please guide me in right direction. Thank you.