file upload syntax change?

classic Classic list List threaded Threaded
2 messages Options
.M.
Reply | Threaded
Open this post in threaded view
|

file upload syntax change?

.M.


Is there any updated doco on file uploading?

I've seen references to

from cherrypy import cpg

and

cpg.request.fileTypeMap['file1']

bother of which don't seem valid any more.

Thanks


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

Reply | Threaded
Open this post in threaded view
|

Re: file upload syntax change?

Christian Wyglendowski-2

Hi,

On 12/7/06, .M. <[hidden email]> wrote:

> Is there any updated doco on file uploading?
>
> I've seen references to
>
> from cherrypy import cpg
>
> and
>
> cpg.request.fileTypeMap['file1']
>
> bother of which don't seem valid any more.

Right - those are from CherryPy 2.0.  In 2.2 and 3.0, see the
cherrypy/tutorial/tut09_files.py example wherever you have CherryPy
installed.  You can also find those files online:

2.2 - http://www.cherrypy.org/browser/tags/cherrypy-2.2.1/cherrypy/tutorial/tut09_files.py
3.0 - http://www.cherrypy.org/browser/trunk/cherrypy/tutorial/tut09_files.py

Christian
http://www.dowski.com

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