0
0
Postmantesting~5 mins

Binary file upload in Postman - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a binary file upload in API testing?
It is sending a file in its raw binary form (like images, PDFs) to an API endpoint, not as text or encoded data.
Click to reveal answer
beginner
How do you select a binary file to upload in Postman?
In the Body tab, choose 'binary' and then click 'Select File' to pick the file from your computer.
Click to reveal answer
intermediate
Why is it important to set the correct Content-Type header when uploading a binary file?
Because the server needs to know the file type to handle it properly, like 'image/png' for PNG images or 'application/pdf' for PDFs.
Click to reveal answer
intermediate
What is a common mistake when testing binary file uploads?
Trying to send the file as text or JSON instead of raw binary data, which causes the upload to fail or corrupt the file.
Click to reveal answer
beginner
How can you verify a binary file upload was successful in Postman?
Check the API response status code (like 200 or 201) and any response message confirming the upload. You can also download or access the file from the server if possible.
Click to reveal answer
In Postman, which Body option do you select to upload a binary file?
Araw
Bbinary
Cform-data
Dx-www-form-urlencoded
What header should you usually set when uploading a PNG image file?
AContent-Type: image/png
BContent-Type: application/json
CContent-Type: text/plain
DContent-Type: multipart/form-data
What happens if you upload a binary file as raw text in Postman?
AThe file uploads correctly
BPostman blocks the request
CThe server converts it automatically
DThe file may get corrupted or rejected
Which HTTP status code usually means a successful file upload?
A200 or 201
B404
C500
D302
Why might you use 'form-data' instead of 'binary' in Postman for file uploads?
ATo compress the file automatically
BTo upload only text files
CTo send multiple files or fields together
DTo encrypt the file
Explain the steps to upload a binary file using Postman and how to verify the upload was successful.
Think about how you pick the file, what headers matter, and how you know it worked.
You got /5 concepts.
    Describe common mistakes when testing binary file uploads and how to avoid them.
    Consider what can go wrong with file format and headers.
    You got /4 concepts.