Daily iOS
Networking

Image upload pipeline

Say you're building a feature that uploads several profile photos. What does the multipart request that a library builds for you actually look like?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

multipart/form-data splits the body into parts using the boundary declared in the header, and each part carries its own Content-Disposition (field name, file name) and Content-Type.

Share a question