What will the Content-Type header look like when the request is sent?
medium
A. application/json
B. multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
C. application/x-www-form-urlencoded
D. text/plain
Solution
Step 1: Recognize form-data Content-Type
Form-data requests use multipart/form-data with a boundary string to separate parts.
Step 2: Match Content-Type to form-data
Options B, C, and D are for JSON, URL encoded, and plain text respectively, not for form-data with files.
Final Answer:
multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW -> Option B
Quick Check:
Form-data uses multipart/form-data with boundary [OK]
Hint: Form-data always uses multipart/form-data with boundary [OK]
Common Mistakes:
Assuming JSON Content-Type for form-data
Confusing URL encoded with form-data
Ignoring boundary parameter in Content-Type
4. You created a form-data request in Postman but the server reports missing file data. What is the most likely mistake?
medium
A. You set the file key type as Text instead of File
B. You forgot to add the Authorization header
C. You used raw JSON body instead of form-data
D. You did not select any file for the file key
Solution
Step 1: Analyze the missing file data issue
If the server says file data is missing, the file was not sent properly.
Step 2: Identify common form-data mistakes
Setting file key as Text sends file path as text, not the file content. Selecting no file also causes missing data but is less common if user intended to upload.
Final Answer:
You set the file key type as Text instead of File -> Option A
Quick Check:
File key must be type File [OK]
Hint: File keys must be type File, not Text [OK]
Common Mistakes:
Using Text type for file keys
Not selecting a file for upload
Confusing body types (raw vs form-data)
5. You want to send a form-data request with multiple text fields and two files named photo.jpg and resume.pdf. How should you configure the form-data body in Postman to correctly send all data?
hard
A. Add all keys as File type and upload files only, omit text fields
B. Add all keys as Text type and paste file paths as values
C. Add keys for text fields as Text type, add keys for files as File type, select files from system
D. Use raw JSON body with base64 encoded files and text fields
Solution
Step 1: Understand form-data mixed data requirements
Form-data supports sending text fields and files together by setting key types accordingly.
Step 2: Configure keys properly in Postman
Text fields must be type Text with their values; files must be type File with selected files uploaded.
Final Answer:
Add keys for text fields as Text type, add keys for files as File type, select files from system -> Option C
Quick Check:
Text keys = Text type, file keys = File type [OK]
Hint: Text fields use Text type; files use File type in form-data [OK]
Common Mistakes:
Uploading files as text values
Omitting text fields when files are present
Using raw JSON instead of form-data for files
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.