Skip to content

Media upload with website url  #7

@dibishks

Description

@dibishks

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions