- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 10:42 AM
We are trying to send an attachment using multipart/form-data in postman and get this error:
{
"error": {
"message": "Failed to create the attachment. File part might be missing in the request.",
"detail": null
},
"status": "failure"
}
The same is working from ServiceNow REST API explorer.
I have seen similar post since 2015 but no correct answers till now 🙂
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2024 06:14 AM
Note: I have done entirely on my instance.....
So, I have reproduce your steps in my instance.
I think you should also follow the same, I guess the version of POSTMAN you are using is not current version so just upgrade it or use the current version of Postman here is the steps that I followed.
Inside Body ---> Form-data ---> file (File) type.....
Authentication used : Basic
Also no need to configure Header in this case rather
Inside Authorization....
Step 1:
Step 2: Hit that send button...... yessss....
Here is the Sample response....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 10:55 AM - edited 02-02-2024 10:58 AM
Also, do checkout this stackover flow post....
but the above snip should help...
https://stackoverflow.com/questions/16015548/how-to-send-multipart-form-data-request-using-postman
If my reply helps you please don't forget to hit the helpful button...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 07:11 PM
@saurabh_dubey I have seen above post and several other posts and none of them have a working solution 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 08:10 PM
Alright @Suggy may I know the step that you followed from POST man to reproduce the steps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2024 05:20 AM
I followed these steps:
and got below error:
{
"error": {
"message": "Failed to create the attachment. File part might be missing in the request.",
"detail": null
},
"status": "failure"
}