Hi Team ,
I am trying to attach file to smartsheet row with the following details,
https://api.smartsheet.com/2.0/sheets/{Sheet ID }/rows/{ Row ID }/attachments
Header :
Authorization:Bearer {ACCESS TOKEN}
Content-Type:image/jpeg
Content-Disposition:attachment; filename="C:\1.jpeg"
ContentLength:64
Response I am getting below is :
{
"message": "SUCCESS",
"resultCode": 0,
"result": {
"id": 6967695279187844,
"name": "C__1.jpeg",
"attachmentType": "FILE",
"mimeType": "image/jpeg",
"sizeInKb": 1,
"parentType": "ROW",
"parentId": 1936240127567748,
"createdAt": "2020-11-25T07:57:55Z",
"createdBy": {
"name": "Evaluation",
"email": "evaluation@vrio-fintech.com"
}
},
"version": 18
}
But the file which is attached is corrupted and throws following error ,
Same error happens with docx files as well, please help us in this regard.