Attachemt is attach in incident but after download the file it shows look like don't support

adityaashok
Tera Contributor

Hello Community,

 

We faced one issue when the attachment is attach to the incident but after download the file it shows look like don't support or this file is corrupted. Text file is open Correctly but other file types is not open properly.

For more information I attached the screen shots.

 

image (3).pngimage (1).pngThanks

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@adityaashok 

attachments are added from UI by end users or via API?

If via API then seems it's not adding the file correctly and hence giving that error

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

adityaashok
Tera Contributor

Hello @Ankur Bawiskar 
We are trying to add attachment through the REST API's still its not working. 3rd party sending the correct content_type in pay load but in serviceNow its always applicaton /json.
For your reference I paste the Payload that we hit through the  Rest API Explorer.

{
  "ClientItemnumber" : "INC055XXXX",
  "ItemNumber" : "INC00000053XXXXX",
   "Filename" : "testOne.png",
    "u_Data" : "aGpkaHNkaGRqaHNkanNkc2hqc2poZA==",
  "content_type" : "image/png"

}

When we receives it form 3rd party it not working.  But when we hit form ServiceNow is working.

Thanks

@adityaashok 

which API 3rd party is consuming?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader