Multipart/Realted API request in POSTMAN - postman

I need to know the setup process of multipart/related file upload API request in POSTMAN.
I have the following details
API url :- https://apiq-jmqny-ste.azpre-api.net
json body :- {
"token" : "aqop094567",
"flow" : "work"
}
pdf file :- Pt_003.pdf
Boundary value :- Acb067
Please anyone suggest some solution regarding that.

At the End of the Key there is small dropdown to select to File where you can upload Files as shown below May be this can help

Related

How can I Upload a feed via postman to Amazon Sp-API?

I've spent weeks, hours daily trying to figure out how to upload a feed (POST_FLAT_FILE_PRICEANDQUANTITYONLY_UPDATE_DATA) to Amazon sp API.
Before even attempting to do it in PHP, I want to 1st make it work on Postman.
I've been successful getting a FEED ID and a FEED URL (I Used content type: "text/xml; charset=UTF-8" since it's a flat file (CSV not XML).
Although, If I can make it work easier via XML I Would gladly switch. I just want to be able to update my inventory and price in same feed.
Are there are links to a postman configuration to upload to a feed?
I think I'm supposed to use "PUT" and upload to the Feed url but I can't find an already complete postman config for it.
Any help would be soooooooo appreciated.
Thank you so much!

Postman - How to embed a file as base64 string in a POST multipart/form-data request?

I would like to share my Postman-Collection including a multipart/form-data request with a very specific file so everything is contained within the Postman-Collection itself.
I tried several approaches like setting the value to text and adding the picture in base64 format and setting the content-type to image/jpeg;base64 or prefixing the value with base64,<base64encodedString> and several combinations that I could think of, but to no avail.
The only documentation/hint I found was setting a postman variable that contains a dynamic definition of where the file is located - this does not solve my problem here though.
How do I embed a file within a Postman multipart/form-data request?
In postman multiform you can upload a file by hovering over the field and selecting type as file.
Example :
change type to file from text. Also enable the column content-type ( it will be generated automatically you don't have to chagne anything)
Other examples:
https://apidocs.imgur.com/
The above has a demo endpoint shows how to upload a image.

MS GRAPH API Upload v1.0 endpoint corrupts DOCX

Was trying to upload docx files through a golang server using MS graph API, and although I was able to upload pdfs, when I tried uploading docx files the files were being corrupted when sent over. If I upload the same file through the OneDrive website, there would be no problems.
To isolate the issue I tried making the API calls through postman using a link like:
https://graph.microsoft.com/v1.0/users/pqv2-dev-svc#novacoast.com/drives/{drive-id}/items/{item-id}:/filename.docx:/content
used a bearer token.
the additional header of Content-Type of which I have tried the values:
text/plain
application/x-www-form-urlencoded
application/vnd.openxmlformats-officedocument.wordprocessingml.document
and uploaded the file with the form-data option under the body tab but with no luck, the file always gets corrupted.
Any ideas?
[Resolved] Was sending file as form-data instead of binary!

Upload document in postman

Iam facing some challanges by uploading a document in postman. The steps how to upload a document by the body and choosing form-data then you add file and change it to file instead of tekst. This goes fine and when I excute the call it goes through. But when I close the postman call and try to open it again and excuted it gives me 400 error code. When I look into the body and espacially by the form-data it shows that no file is choosing. So postman is not saving the path where the document is located. In this case I have to added everytime when I want to run the request.
The quastion is how do I fix this problem. Postman is not saving the location of the document.
Thanks in advance

can we upload a file from put or post in netlib?

I want some server for my post or put request in cpp.I have choose netlib.. so i want to know that can we upload some xml or json file from put or post request in netlib.
Can anyone answer this question. because i m struck with this.
Thanks
Vishnkumar.