API Testing · Middle · Question 32 of 75
How do you test file upload with multipart/form-data?
- 1Only the file name, because content doesn't matter
- 2Only one small valid file, since uploads rarely fail
- 3Valid files, wrong types, too-large files and renamed extensions
Show the answer
Correct answer: Valid files, wrong types, too-large files and renamed extensions
Explanation
Check limits (413 Payload Too Large), content-type validation (not just extension), malicious names and storage.