[Grok-dev] Re: Using POST request
faassen at startifact.com
Tue Mar 25 04:43:42 EDT 2008
Uli Fouquet wrote:
> called 'file_upload'. Because normal views are not
> named that way, they cannot be found and this results in a 404 - file
> not found.
> So, your application must provide this 'action'. With views you should
> be able to do it like this::
[a view named file_upload]
I'm trying to understand the reasoning here. Why would a view named
file_upload be required in order to process this field? What would be
trying to access this file_upload view? There's after all only a single
multipart/form-data POST request being made - do you think setuptools is
sending another request?
Perhaps zope's publisher machinery somehow fails badly on something in
this form, and as a result an exception gets raised that inadvertantly
is translated into a 404 error. The 'name=":action"' bit looks pretty
weird, though you'd think you'd simply get a request.form[':action']
field as a result.
More information about the Grok-dev