List Info

Thread: file upload syntax change?




file upload syntax change?
user name
2006-12-07 14:39:42

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 cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

file upload syntax change?
user name
2006-12-07 15:07:08
Hi,

On 12/7/06, .M. <michelathequality.com> 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/brow
ser/tags/cherrypy-2.2.1/cherrypy/tutorial/tut09_files.py
3.0 - http://www.cherrypy.org/browser/trunk/cher
rypy/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 cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )