Hey @CML_VisualFeed,
I think this is likely caused by the quotes around the file path. Removing those should do the trick. If that doesn’t, and the below doesn’t help, would be great to confirm you are using version 0.9.0 or newer, as we only added support for media uploads since that version.
Here’s a sample of using twurl to upload media:
twurl -H upload.twitter.com "/1.1/media/upload.json" -f ~/Desktop/B05iXOYCUAAGns4.jpg_large.jpg -F media -X POST
{
"image": {
"w": 1024,
"h": 576,
"image_type": "image/jpeg"
},
"media_id": 588185299844370432,
"media_id_string": "588185299844370432",
"size": 105489
}
Then to Tweet that media_id:
twurl "/1.1/statuses/update.json" -d "media_ids=588185299844370432&status=Sample Tweet with media_ids and twurl"
{
"created_at": "Wed Apr 15 03:51:40 +0000 2015",
"id": 588187910811299842,
"id_str": "588187910811299842",
"text": "Sample Tweet with media_ids and twurl http://t.co/fyPdMIfcNM",
...
"media": [
{
"id": 588185299844370432,
"id_str": "588185299844370432",
"indices": [
38,
60
],
"media_url": "http://pbs.twimg.com/media/CCmnafNUkAA0R-8.jpg",
"media_url_https": "https://pbs.twimg.com/media/CCmnafNUkAA0R-8.jpg",
"url": "http://t.co/fyPdMIfcNM",
"display_url": "pic.twitter.com/fyPdMIfcNM",
"expanded_url": "http://twitter.com/jaakkosf/status/588187910811299842/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 340,
"h": 191,
"resize": "fit"
},
"medium": {
"w": 600,
"h": 337,
"resize": "fit"
},
"large": {
"w": 1024,
"h": 576,
"resize": "fit"
}
}
}
]
},
"extended_entities": {
"media": [
{
"id": 588185299844370432,
"id_str": "588185299844370432",
"indices": [
38,
60
],
"media_url": "http://pbs.twimg.com/media/CCmnafNUkAA0R-8.jpg",
"media_url_https": "https://pbs.twimg.com/media/CCmnafNUkAA0R-8.jpg",
"url": "http://t.co/fyPdMIfcNM",
"display_url": "pic.twitter.com/fyPdMIfcNM",
"expanded_url": "http://twitter.com/jaakkosf/status/588187910811299842/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 340,
"h": 191,
"resize": "fit"
},
"medium": {
"w": 600,
"h": 337,
"resize": "fit"
},
"large": {
"w": 1024,
"h": 576,
"resize": "fit"
}
}
}
]
},
...
}