I think any URL should be able to handle files, as is specified by
REST. Web2py should read the content type and HTTP verb as in


www.mydomain.com/myfiles/Mynewfile

"PUT /myfiles/Mynewfile HTTP/1.1
Host: www.mydomain.com
Content-Type: file type
Content-Length: file length
"

The combination of PUT( create resource) + file type is the ticket I
think. Specifying a different function or URL would not be useful if
you intend for it to be fully RESTful, for example:

/employees         # main resource
/employees/voltron or /employees?user_name =voltron  # GET shows the
user voltron with stat 200 or 404
/employees/voltron or /employees?user_name =voltron  # PUT creates a
new user voltron with 201 or 405, 401, 402 etc

These are all handled by the same controller, which maps to the
resource

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to