file = os.getcwd()+'/'+settings.get('IMAGES_STORE')+'/'+settings.get('APMSIZEIMAGE')+'/'+item.get('images')[0]['path']
files = {
'file': open(file, 'rb'),
'ref': file
}
fileResult = requests.post(self.publish_site+'/ghost/api/'+self.admin_api_key_version+'/admin/images/upload/', files=files, headers=headers)
I get 500 Internal Server Error. below server return 500 message
{
"errors": [
{
"message": "Unexpected field",
"context": null,
"type": "InternalServerError",
"details": null,
"property": null,
"help": null,
"code": "LIMIT_UNEXPECTED_FILE",
"id": "9dd729f0-fa12-11e9-a112-a5155e1b5aef"
}
]
}
Version 2.25.4
Environment development
Database sqlite3
Mail Direct