> On Nov 29, 2008, at 2:24 PM, Jenna Fox wrote:
>
> Also with your syntax, you don't know what 'field name' to give that file,
> so I suppose that would be a PUT request, which is nearly useless on the
> modern internet.
>
> Unless you are talking to a REST API .

Yes. I've just realised I was a little confused about the difference
between a REST API post and a standard web form POST.

>From doing a little research, a REST API post (using the http header
PUT verb) involves putting data typically in XML format in the
payload. I guess that XML will contain both names and values. If
PUT'ing a file, then I am guessing that the file name may be
represented in the URL (or maybe not). Would/could a REST PUT contain
multiple payloads? I dont know (does anyone?)

... so why's suggestion of having both "upload" and "upload_form" makes sense.

I like shoe's chosen nomenclature of such things as "download" ...
make it very simple for non-technically oriented people to understand
what something does. I was thinking that  "post_form" or "submit_form"
would also be very clear (for upload_form) ... but putting oneself in
the shoes (ahem) of the end user is a particular skill, which I am not
sure I can claim to have.

Etienne

Reply via email to