How do I get the new filename of an uploaded file? Along with its new
absolute path..

Below, from the book, does not exist.

.... web2py 2nd edition pg 196 p. 2.....
   Only its extension is preserved. This is a security requirement since the
filename may contain special characters that could allow a visitor to
perform
directory traversal attacks or other malicious operations.
   The new filename is also stored in form.vars.image newfilename.
   When editing the record using an UPDATE form, it would be nice to
display a link to the existing uploaded file, and web2py provides a way to
do it.


-Thadeus

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

Reply via email to