directedition
directedition

Reputation: 11705

HTTP file uploading standard?

I'm writing a client in python to upload a file to a webserver I run. On the PHP side, it seems I should expect the file to arrive in the $_FILES variable, but I can't find any documentation on how that variable gets populated. I can find tutorials on how to create web forms to upload, but none of them tell me what the actual HTTP POST looks like. I'm assuming that there is a standard for what parameters to populate and what content-type to specify, but I can't find it stated anywhere.

Upvotes: 2

Views: 1548

Answers (1)

BalusC
BalusC

Reputation: 1108922

It's the multipart/form-data encoding which is described in RFC 1867 and RFC 2388.

Upvotes: 3

Related Questions