Uploading Photos - POST Example

If you're constructing the POST query manually instead of using some sort of service library, it should look something like this. All line endings must be \r\n.

POST /services/upload/ HTTP/1.1
Content-Type: multipart/form-data; boundary=---------------------------7d44e178b0434
Host: api.flickr.com
Content-Length: 35261

-----------------------------7d44e178b0434
Content-Disposition: form-data; name="api_key"

3632623532453245
-----------------------------7d44e178b0434
Content-Disposition: form-data; name="auth_token"

436436545
-----------------------------7d44e178b0434
Content-Disposition: form-data; name="api_sig"

43732850932746573245
-----------------------------7d44e178b0434
Content-Disposition: form-data; name="photo"; filename="C:\test.jpg"
Content-Type: image/jpeg

{RAW JFIF DATA}
-----------------------------7d44e178b0434--

The multipart boundary should be randomly generated and should not occur anywhere inside the payload data. Also, don't forget the line ending after your RAW JFIF DATA and before the final boundary.