Changeset 956
- Timestamp:
- 02/06/06 00:53:23
- Files:
-
- trunk/cherrypy/tutorial/tut09_files.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/tutorial/tut09_files.py
r762 r956 32 32 Set "name" to the filename that you expect clients to use when they save 33 33 your file. Note that the "name" argument is ignored if you don't also 34 provide a "disposition" ("application/x-download" works in most cases). 34 provide a "disposition" (usually "attachement"). You can manually set 35 "contentType", but be aware that if you also use the EncodingFilter, it 36 may choke if the file extension is not recognized as belonging to a known 37 Content-Type. Setting the contentType to "application/x-download" works 38 in most cases, and should prompt the user with an Open/Save dialog in 39 popular browsers. 35 40 36 41 """

