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?
✗ Incorrect
The 'binary' option allows you to upload raw files directly.
What header should you usually set when uploading a PNG image file?
✗ Incorrect
The server needs 'image/png' to recognize the file type correctly.
What happens if you upload a binary file as raw text in Postman?
✗ Incorrect
Uploading as text can corrupt the file or cause the server to reject it.
Which HTTP status code usually means a successful file upload?
✗ Incorrect
200 means OK and 201 means Created, both indicate success.
Why might you use 'form-data' instead of 'binary' in Postman for file uploads?
✗ Incorrect
'form-data' lets you send files plus other data fields in one request.
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.